axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Fell <s...@zaks.demon.co.uk>
Subject WSDL2Java bug with multiple namespace doc/literal
Date Wed, 23 Jan 2002 05:35:16 GMT
I used WSDL2Java to build a proxy for the following WSDL
http://soap.4s4c.com/test_doclit/sf.soap

The wsdl defines a doc/literal endpoint, where the XSD Schema is
imported and in a different namespace to the WSDL definitions
namespace.

Compiling and running the generated proxy, generates this SOAP
request.

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <echoString xmlns="http://wsdl.prototypes.4s4c.com">
   <parameters xsi:type="ns1:echoString_t"
	xmlns:ns1="http://soapinterop.org/">
    <inputString xsi:type="xsd:string">Hello World !</inputString>
   </parameters>
  </echoString>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

But the echoString element should be in the http://soapinterop.org/
namespace, not the one used.
the parameters element should be called inputString and be in the
http://soapinterop.org/ namespace.

In addition there was no code generated for the headers.

Cheers
Simon
www.pocketsoap.com

Mime
View raw message