Hi there!

I'm new to xml-rpc but tried to search through the archive from september till now without any luck.

I've made my client like this:

   private static void setupXmlRpc() throws MalformedURLException {
       XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
       config.setServerURL(new URL(serverURL));
       msgSender = new XmlRpcClient();
       msgSender.setConfig(config);
   }
where the variable serverURL is the url for my webapp in tomcat.

My problem arises on the serverside since I use a framework called JWIG( http://www.brics.dk/JWIG/ ) which abstracts away the servlets.

The framework also comes with a dispatcher that is invoked on all calls to the website(using * in the web.xml) and therefore I'm not happy about editing the web.xml file to use the XmlRpcServer/servlet/webserver (can't remember which one it is).

When the framework receives a request it finds the right WebApp objekt and invokes the right method like this:

www.demo.com/test/testMethod

will invoke the method testMethod on an instance of the class Test.

My question is how to use the XmlRpc framework within this JWIG framework. Can I simply create an instance of XmlRpcServer in my WebApp-class and use it? How can I get a hold on the data from the client so that the server can get the XmlRpcRequest it expects when calling its execute?

-Casper

Reply via email to