Can anyone point out where the problem is? I don't think the my wsdl file has any problems and I think the provider component is generating a faulty soap message. Is that a servicemix bug? -Dan
sdan wrote: > > The problem is my http bc provider component is generating the following > soap request which is > wrong. > > POST /axis2/services/Hello HTTP/1.1 > Content-Type: text/xml > Content-Length: 408 > SOAPAction: "" > User-Agent: Jakarta Commons-HttpClient/3.0 > Host: 127.0.0.1:8080 > > <?xml version='1.0' encoding='UTF-8'?> > <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"> > <env:Body> > <sayHello xmlns="urn:/HelloWorld2-RPC.wsdl" > 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" > xmlns="http://nec.com/xsd"> > <text xmlns="">Dan!!</text> > </sayHello> > </env:Body> > </env:Envelope> > > The correct soap envelope should look like > > <?xml version='1.0' encoding='UTF-8'?> > <soapenv:Envelope > xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"> > <soapenv:Body> > <ns1:sayHello xmlns:ns1="http://nec.com/xsd"> > <ns1:req> > <ns1:text>Tomcat test!</ns1:text> > </ns1:req> > </ns1:sayHello> > </soapenv:Body> > </soapenv:Envelope> > > > So the real problem here is the namespace attributes asscociated with > sayHello. First of all > its xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" attribute > causing tomcat to > throw an error message "Duplicate default namespace declaration". Also the > xmlns attribute > appears there twice. attached are all the necessary wsdl files. > > > http://www.nabble.com/file/p10788357/deploy.xml deploy.xml > http://www.nabble.com/file/p10788357/hello.wsdl hello.wsdl wsdl for > external webservice > http://www.nabble.com/file/p10788357/HelloWorld2-RPC.bpel > HelloWorld2-RPC.bpel bpel code > http://www.nabble.com/file/p10788357/HelloWorld2-RPC.wsdl > HelloWorld2-RPC.wsdl wsdl for bpel process > http://www.nabble.com/file/p10788357/xbean.xml xbean.xml xbean file for > http provider bc > -- View this message in context: http://www.nabble.com/possible-bug-in-servicemix-soap-package-tf3811474s12049.html#a10874591 Sent from the ServiceMix - User mailing list archive at Nabble.com.
