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 Uma Shinde <us...@openmarket.com> on 2001/10/19 18:32:03 UTC

How do I send nested parameters?

When I use this sequence of calls:   
  Vector params = new Vector();
    params.addElement(new Parameter("junk", String.class,
                                    uniqueID, null));
    call.setParams(params);

Here's how the envelope is generated.

<SOAP-ENV:Body>
<ns1:SelectRows xmlns:ns1="urn:test"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<junk xsi:type="xsd:string">WEBS</junk>
</ns1:SelectRows>
</SOAP-ENV:Body>

I'm trying to use a service (one that's already out there) that has an
additional level of nesting..
<SOAP-ENV:Body>
<ns1:SelectRows xmlns:ns1="urn:test"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<input>
<junk xsi:type="xsd:string">WEBS</junk>
</input>
</ns1:SelectRows>
</SOAP-ENV:Body>

Any idea how I generate this?

TIA
Uma