简体   繁体   English

如何创建在Java中处理xml rpc请求的xml rpc服务器?

[英]how to create the xml rpc server that handles xml rpc request in java?

In a java class,the Xml rpc webserver is listing to the client requests (by url like http://localhost:8056/ ) and the xml request is having multiple number of lines like 在Java类中,Xml rpc Web服务器正在向客户端请求列出(通过类似http:// localhost:8056 /的url),而xml请求具有多个行,例如

<methodCall>
<methodName>method1</methodName>
<params>
<param><value><string>hello1</string></value></param>
<param><value><string>hello2</string></value></param>
</params>
</methodCall>

how to catch all the parameters which are going to vary by request to request.. but every we have to use the same method to process the request. 如何捕获将因请求而异的所有参数..但是每个我们都必须使用相同的方法来处理请求。

Thanks in advance.. 提前致谢..

为什么不使用Apache XML-RP C库,该库会为您进行所有解析?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM