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>
|