This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

XML-RPC in Spring

 
Darren Carter
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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



 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic