I have a schema that looks like this
<complexType name="AuthorOrISBNType">
<choice>
<sequence>
<element name="author" type="string" nillable="true"/>
<element name="title" type="string" nillable="true"/>
</sequence>
<element name="isbn" type="string"/>
</choice>
</complexType>
<element name="getBookPrice" type="tns:AuthorOrISBNType"/>
The wsdl has the appropriate bits referencing the element.
My generated method looks like
public javax.xml.soap.SOAPElement
getBookPrice(javax.xml.soap.SOAPElement parameters);
And the SOAP I send looks like
<env:Envelope xmlns:env="
http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xmlns:enc="
http://schemas.xmlsoap.org/soap/encoding/"
xmlns:ns0="urn:com-develop-ejws-data:types">
<env:Body>
<ns0:getBookPrice xmlns:b="urn:com-develop-ejws-data:types">
<isbn>111-222</isbn>
</ns0:getBookPrice>
</env:Body>
</env:Envelope>
However in the getBooksPrice method I see this
<ns:getBookPrice xmlns:b="urn:com-develop-ejws-data:types"
xmlns:ns0="urn:com-develop-ejws-data:types"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<isbn>111-222</isbn>
</ns:getBookPrice>
Notice that getBookPrice is in 'ns' and not 'ns0' or 'b' and 'ns' is not
bound to a namespace.
getBookPrice doesn't have a parent so the ns prefix isn't bound there.
This is in JWSDP 1.3.
Am I missing something obvious?
Kevin Jones
http://kevinj.develop.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net