• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

XML-RPC in Spring

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



reply
    Bookmark Topic Watch Topic
  • New Topic