You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@xml.apache.org by Bhavin Parikh <bh...@spectramarketing.com> on 2000/09/22 21:45:18 UTC
RE: Vector of Vectors serialization
I think I don't need SOAPMappingRegistry for Vectors and Arrays. Am I
right???
I could not get success to pass Vector using Apache SOAP
Here is my client code ..........
{
String encodingStyleURI = Constants.NS_URI_SOAP_ENC;
URL url = new URL (args[0]);
Vector lngtempIDs;
lngtempIDs = new Vector();
lngtempIDs.addElement(new Integer(25));
lngtempIDs.addElement(new Integer(60));
lngtempIDs.addElement(new Integer(3));
Vector params = new Vector();
params.addElement(new Parameter("rootElement", Vector.class ,
lngtempIDs, Constants.NS_URI_SOAP_ENC));
// Build the call.
Call call = new Call ();
call.setTargetObjectURI ("Engine");
call.setMethodName ("getEngine");
call.setEncodingStyleURI(encodingStyleURI);
call.setParams(params);
// make the call: note that the action URI is empty because the
// XML-SOAP rpc router does not need this. This may change in the
// future.
Response resp = call.invoke (/* router URL */ url, /* actionURI */ "" );
................
.................
}
Server method prototype
public Object[] getEngine( Object data ) throws Exception;
Getting following error.........
getEngine(java.lang.Object[]) -- no signature match.
Second question,
What should I change in above code so it can work for Vector of Vectors
inputs?????
I saw following statement in API documentation. Has VectorSerializer class
implementation been changed??
A VectorSerializer can be used to serialize (but not deserialize)
Glen, why you don't post your sample code for vector and vector of vectors
inputs!!!!!
I would appreciate your suggestions or help.
Thanks
Bhavin Parikh
Spectra
Microsoft Certified Solution Developer,
Work No : 717-397-1500 ext. 1191
Fax : 717-397-6821
> -----Original Message-----
> From: Glen Daniels [SMTP:gdaniels@allaire.com]
> Sent: Wednesday, September 20, 2000 3:33 PM
> To: 'Bhavin Parikh '; 'soap-dev@xml.apache.org'
> Subject: RE: Vector of Vectors serialization
>
>
> Vectors of Vectors (and arrays of Vectors, for that matter) work fine for
> me.
>
> --Glen
>
>