Hi Mas Hari,

 

 

You can look at http://ws.apache.org/xmlrpc/server.html , but here I cut and paste relevant part from your question :

 

 

“The XML-RPC library can be embedded into any Web server framework that supports reading HTTP POSTs from an InputStream. The typical code for processing an incoming XML-RPC request looks like this:

 XmlRpcServer xmlrpc = new XmlRpcServer ();
 xmlrpc.addHandler ("examples", new ExampleHandler ());
 ...
 byte[] result = xmlrpc.execute (request.getInputStream ());
 response.setContentType ("text/xml");
 response.setContentLength (result.length());
 OutputStream out = response.getOutputStream();
 out.write (result);
 out.flush ();

Note that the execute method does not throw any exception, since all errors are encoded into the XML result that will be sent back to the client. A full example servlet is included in the package. There is a sample XML-RPC Servlet included in the library. You can use it as a starting point for your own needs.”

 

But if somehow you don’t satisfied with this kind of solution, you can use class XmlRpcRequestProcessor for processing request (InputStream) to be a request “method String” and a “parameter Array/Vector”, and use XmlRpcResponseProcessor for processing response “parameter Array/Vector” to be an array of bytes.

 

Regards,

 

Rahmat Bagas Santoso.

 

-----Original Message-----
From: Hari Cahyadi [mailto:[EMAIL PROTECTED]]
Sent
:
Wednesday, November 10, 2004 10:10 AM
To: [EMAIL PROTECTED]
Subject: Asking about webserver

 

Hi Again,

 

I am newbie in XML-RPC May I ask some question, my question is :

 

·         How to use our existing server(like: tomcat, websphere or weblogic) as web server for XML-RPC, rather than use org.apache.xmlrpc.WebServer;

I hope somebody can help me, because this is very urgent

 

Regards,

Hari Cahyadi


Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

Reply via email to