Could you post the schema section in the WSDL that describes GetOrderDetails. That would give us a clue to whats wrong.
Thanks, Keith. On Tue, Oct 14, 2008 at 5:02 PM, Harm de Laat <[EMAIL PROTECTED]> wrote: > Hi all, > > I'm having great difficulties calling a BizTalk webservice using axis2 > (1.4.1) with ADB. > > I have generated my client using the following command: > > wsdl2java.sh -uri > http://x.x.x.x/WebServices/AdvPortal/MDC/WebService_Sanoma_BizTalk_AdvertentiePortal_MDC.asmx?WSDL-p > nl.kabisa.sanoma.webservices -d adb -s > > This generates all classes and using my (test)client I get to call the > service. This generates the following SOAP message: > > <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <ns3:GetOrderDetails xmlns:ns3=" > http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"> > <OrderInfo xmlns=" > http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb > "> > <Referentienummer>123456.123</Referentienummer> > </OrderInfo> > </ns3:GetOrderDetails> > </soapenv:Body> > </soapenv:Envelope> > > However, this call gets discarded by the BizTalk server. When I manually > modify the soap message to the message below everything is fine. (Notice the > ns2 namespace): > > <soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <ns3:GetOrderDetails xmlns:ns3=" > http://webservices.sanoma-uitgevers.nl/AdvPortal/MDC/"> > <n2:OrderInfo xmlns:n2=" > http://schemas.sanoma-uitgevers.nl/AdvPortal/MDC/SchemaOrderInfoRequestWeb > "> > <Referentienummer>123456.123</Referentienummer> > </n2:OrderInfo> > </ns3:GetOrderDetails> > </soapenv:Body> > </soapenv:Envelope> > > What is going on here? Why is the NS2 namespace missing in the Axis2 > generated Soap message? > Also, what can I do to make this relatively simple client work? > > Kind regards, > > -- > Harm de Laat > Kabisa ICT > > -- Keith Chapman Senior Software Engineer WSO2 Inc. Oxygenating the Web Service Platform. http://wso2.org/ blog: http://www.keith-chapman.org