Hi,
 
I have this little query. If I want to pass simple String params in a SOAP call, I do something like this:
 
Vector params = new Vector();
params.addElement(new Parameter("param1", String.class, "param1", null));
params.addElement(new Parameter("param2", String.class, "param2", null));
call.setParams(params);
 
and the XML envelope comtains something like:
<ns1:methodname xml:ns1="urn:XYZ" .....>
    <param1 xsi:type="xsd:string">param1</param1>
    <param2 xsi:type="xsd:string">param2</param1>
</ns1:methodname>
 
But now, I want the XML envelope to look something like this:
<ns1:methodname xml:ns1="urn:XYZ".....>
    <params>
        <param1 xsi:type="xsd:string">param1</param1>
        <param2>
            <param2A name='attribute1' type='type1' multi='no'>value1</param2A>
            <param2A name='attribute2' type='type2' multi='yes'>value2a; value2b; value2c</param2A>
        </param2>
</ns1:methodname>
 
Can anyone sugguest me how can I do that by setting params in the Call object ?
 
TIA
Vinod.

Reply via email to