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

XML-RPC vs SOAP vs Custom

Pho Tek
Ranch Hand

Joined: Nov 05, 2000
Posts: 761

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


Regards,

Pho
Devrim Turker
Greenhorn

Joined: Jan 14, 2002
Posts: 14
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.
 
subject: XML-RPC vs SOAP vs Custom