You are viewing a plain text version of this content. The canonical link for it is here.
Posted to soap-user@ws.apache.org by Ulrich Mayring <ul...@denic.de> on 2000/09/25 17:46:06 UTC

passing a Vector of String[2] arrays over SOAP

Hello,

I'm passing a Vector of String[2] arrays to SOAP, where the String[2]
arrays are name/value pairs. I'm doing it like this:

Vector params = new Vector();
String[] nameValue = new String[2];
nameValue[0] = "name";
nameValue[1] = "value";
params.addElement(nameValue);

Vector signature = new Vector();
signature.addElement(new
Parameter("parameter",Vector.class,params,null));
call.setParams(signature);

Is this the correct way of doing it? I assume I have to deploy the SOAP
service on the receiving end with the Vector serializer then? Are the
String[2] arrays preserved correctly within the params Vector or do I
have to cast from Object to String[] in the SOAP service on the
receiving end?

Ulrich

-- 
Ulrich Mayring
DENIC eG, Systementwicklung