Can you supply us with the WSDL file? 

The SOAP Body element (the message name -- in your case "GetAddressFor
AddressID") is required to be a qualified element. In an rpc-style
message, the namespace qualifier must be defined in the namespace
attribute in the <soap:body> definition in the WSDL binding. In a
document-style message, the namespace qualifier is the target
namespace for the schema that defines the message element.

Anne

On Tue, 28 Dec 2004 12:30:16 -0800, Matthew Denson
<[EMAIL PROTECTED]> wrote:
> 
> 
> Hi all, 
> 
> I am using Axis 1.1 final as a client to call a web service implemented in
> Blue Martini.  I have what appears to be a configuration problem.  When I
> use the stub generated by wsdl2java to call the web service I get a fault
> from the web service.  My request from TCPMon looks like:
> 
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 
>  <soapenv:Body> 
>   <getAddressForAddressId> 
>    <addressId xsi:type="xsd:long">21</addressId> 
>   </getAddressForAddressId> 
>  </soapenv:Body> 
> </soapenv:Envelope> 
> 
> (This request works fine when I use the client against a test Axis web
> service.) 
> 
> If I tweak the envelope slightly as below: 
> 
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 
>  <soapenv:Body> 
>   <m:getAddressForAddressId xmlns:m="urn:soap.amsoe.c.com"> 
>    <addressId xsi:type="xsd:long">21</addressId> 
>   </m:getAddressForAddressId> 
>  </soapenv:Body> 
> </soapenv:Envelope> 
> 
> And send it with a post everything works as it should.  (There is now a
> namespace on the message name.) 
> 
> SO, my qestion is how do I get the generated stub to produce the second
> envelope? 
> 
> I've searched all the documentation I can find but don't really know what to
> look for, sorry.  Thanks for any help. 
> 
> Cheers, 
> Matthew Denson

Reply via email to