-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Apache OfBiz Cookbook
XML-RPC-based web services expect service requests in the "XML-RPC" specification format. If you need to access a web service as a client using XML-RPC, then this section is for you. OFBiz provides a utility based in the Apache XML-RPC project that exposes everything necessary to easily write Java-based XML-RPC clients.
Gather the following information about how the target web service operates:
Determine the URL of the web service provider
Determine the procedure, function, and/or method to be called
Determine any connection parameters
Don't forget to import the following:
import org.apache.xmlrpc.client.XmlRpcClient; import org.apache.xmlrpc.client.XmlRpcClientConfigImpl; import org.apache.xmlrpc.XmlRpcException; import java.net.URL
To create XML-RPC web service clients, follow these steps:
1. Create an instance of the XmlRpcClient object as shown here:
XmlRpcClient client = new XmlRpcClient();
2. Create an instance of the XmlRpcClient...
Change the font size
Change margin width
Change background colour