aspose file tools*
The moose likes Spring and the fly likes XML-RPC in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "XML-RPC in Spring" Watch "XML-RPC in Spring" New topic
Author

XML-RPC in Spring

Darren Carter
Ranch Hand

Joined: Jul 08, 2010
Posts: 30
Hi All,

I have a new requirement where I need to connect to a third party XML PRC interface.

I have not done this in spring before and was hoping if someone could point me in the right direction of what I should be using.

The Api endpoint takes this example request:

Function: api.tcrc_checkCard

<?xml version="1.0"?>
<methodCall>
<methodName>api.tcrc_checkCard</methodName>
<params>
<param><value><string>yourUsername</string></value></param>
<param><value><string>yourPassword</string></value></param>
<param><value><string>90070299999999</string></value></param>
</params>
</methodCall>

And sends a response such as

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param><value>
<struct>
<member><name>card_name</name><value><string>Test</string></value></member>
<member><name>scheme_max_award</name><value><int>10000</int></value></member>
<member><name>card_balance</name><value><int>0</int></value></member>
<member><name>error_code</name><value><int>0</int></value></member>
<member><name>error_description</name><value><string>success</string></value></member>
</struct></value>
</param>
</params>
</methodResponse>

Ive been reading about the Springs Httpinvoker but Im a little confused on how this would be configured? Am I on the right path with this?

Thanks



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: XML-RPC in Spring
 
Similar Threads
Parameter list to post comments on a Wordpress page
Java and Perl
RPC - SOAP
JAX_RPC and SOAP
XML-RPC vs SOAP vs Custom