XML-RPC (Novice) [message #489376] |
Fri, 02 October 2009 12:31  |
Eclipse User |
|
|
|
I created a client as shown here http://ws.apache.org/xmlrpc/client.html by creating a new Java project and just adding a class and pasting the code in that class.
I have been trying to follow the instructions listed athttp://ws.apache.org/xmlrpc/server.html for two days. I have created a Java Web App. I then create a servlet and added the following code.
Code:
package org.apache.xmlrpc.demo;
public class Calculator {
public int add(int i1, int i2) {
return i1 + i2;
}
public int subtract(int i1, int i2) {
return i1 - i2;
}
}
I then create the property as stated in step 2. I named my package server and I placed the property file in it. I do not understand how to place it in my jar file. Which jar file are they talking? Do I create a new jar file?
In step 3 I just copied and paste the XML file in web.xml.
Could someone please explain in a little more detail how this is done especially steps 2 and 3. Thanks.
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05541 seconds