• 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
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

XML-RPC vs SOAP vs Custom

 
Ranch Hand
Posts: 782
Python Chrome Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
SOAP is an overkill for my needs. So currently we're looking at writing our own custom XML transfer using servlets/URLconnection etc..
Could anyone who has some experience of using XML-RPC comment on its ability to validate types within the XML instance ? We're looking at sending:
integers
money (e.g. BigDecimal)
dates
strings
Also we need to be able to send a vector/struct like representation of stuff.
Cheers,
Pho
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
XML - RPC has
integer, boolean, string, double, date/time,
base 64 types
<?xml version="1.0"?>
<methodCall>
<methodName>GetCelcius</methodName>
<params>
<param>
<value><int>-5</int></value>
<param>
<params>
</methodCall>
a java Client sample
XmlRpcClient xmlrpc= new xmlRpcClient
"http://www.localhost.com/xmlrpc/server.asp");
Vector params =new Vector();
params.addElement(5000);
Integer retVal= (Integer) xmlrpc.execute("GetCurrentBalance", params);
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic