XML-RPC Data Types

XML-RPC data type Types generated by the Parser Types expected by the Invoker
<i4> or <int> java.lang.Integer int
<boolean> java.lang.Boolean boolean
<string> java.lang.String java.lang.String
<double> java.lang.Double double
<dateTime.iso8601> java.util.Date java.util.Date
<struct> java.util.Hashtablejava.util.Hashtable
<array> java.util.Vector java.util.Vector
<base64> byte[ ] byte[ ]

To call this server-side method...

    public boolean postParts(String vehicle, Vector parts) { ...

... use this client-side code...

    Vector params = new Vector();

    params.add(getVehicle());
    params.add(getParts());

    Boolean posted = (Boolean) pos.execute("pos.postParts", params);

Here's the actual payload of the HTTP post:

    <?xml version="1.0"?>
    <methodCall>
        <methodName>pos.postParts</methodName>
        <params>
            <param>
                <value>1963 CHEVROLET IMPALA V8-283</value>
            </param>
            <param>
                <value><array><data>
                    <value>8	MV1888C	Intake Valve Seal</value>
                    <value>16	MV1598C	Valve Stem Seal</value>
                    <value>1	5092	Rear Main Seal</value>
                    <value>1	99176	Timing Cover Seal</value>
                </data></array></value>
            </param>
        </params>
    </methodCall>