1000 Java Tips ebook
Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java
programming articles and tips. Please take your copy here.
Take your copy of free "Java Technology Screensaver"!.
Good review: Java XML RPC
JavaFAQ Home » XML
Java XML RPC Overview
Recently one friend of mine asked me about how distributed computers could easily exchange by text based data without thinking about firewalls, which close most of ports between applications.
First I was thinking about was Java RMI - but it does not work through the most of firewalls.
Second one was is exchange by sharing a file on one mounted drive. This file could be a buffer where information is read/written from. But the same problem with firewalls arose, because you need to use NFS for Unix based computers and similar service in Windows, which name I do not remember, since quite rarely use it.
5 minutes to read about XML RPC
Third option came later to my mind - XML RPC ( http://www.xmlrpc.com )! I totally forgot about it, when tried to find "pure Java" solution It could be an excellent choice to send any information over the Internet, since XML RPC technology use HTTP-POST requests.
this image is from www.xmlrpc.com site
Here's an example of an XML-RPC request:
POST /RPC2 HTTP/1.0
User-Agent: Frontier/5.1.2 (WinNT)
With XML RPC you can send:
- scalar values like integer (four bytes signed integer), boolean, string, date/time, base64 encoded binary, double precision signed floating point number.
- structures - <struct> which contains members (contains name and values)
- arrays (can be recursive) which can contain an array, structure or scalar values.
A response xml code for XML RPC looks very similar.
You can find Java simple implementation examples on XMP RPC home site.
Printer Friendly Page
Send to a Friend
Search here again if you need more info!