You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by sdan <sd...@yahoo.com> on 2007/05/24 19:00:52 UTC
possible bug in servicemix-soap package
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#a10788357
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: possible bug in servicemix-soap package
Posted by sdan <sd...@yahoo.com>.
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.
Re: possible bug in servicemix-soap package
Posted by sdan <sd...@yahoo.com>.
if I switch to soap 1.2 the request would like the following (and I'll still
get the following error message). The problem is that even if I take out the
soapVersion attribute from xbean.xml
bc is still generating the
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" atrribute
for sayHello. Also sayHello has duplicate attributes.
POST /axis2/services/Hello HTTP/1.1
Content-Type: text/xml
Content-Length: 406
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://www.w3.org/2003/05/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>
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 24 May 2007 14:45:43 GMT
Connection: close
1e1
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header>
<wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
</soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode></faultcode>
<faultstring>Transport level information does not match with
SOAP Message namespace URI</faultstring>
<detail />
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
gnodet wrote:
>
> The http://www.w3.org/2003/05/soap-envelope namespace if the one for Soap
> 1.2
> while http://schemas.xmlsoap.org/soap/envelope/ is the one for Soap 1.1.
> Have you tried changing the soapVersion attribute to 1.2 ?
>
> On 5/24/07, sdan <sd...@yahoo.com> 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#a10788357
>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>>
>>
>
>
> --
> Cheers,
> Guillaume Nodet
> ------------------------
> Principal Engineer, IONA
> Blog: http://gnodet.blogspot.com/
>
>
--
View this message in context: http://www.nabble.com/possible-bug-in-servicemix-soap-package-tf3811474s12049.html#a10790284
Sent from the ServiceMix - User mailing list archive at Nabble.com.
Re: possible bug in servicemix-soap package
Posted by Guillaume Nodet <gn...@gmail.com>.
The http://www.w3.org/2003/05/soap-envelope namespace if the one for Soap
1.2
while http://schemas.xmlsoap.org/soap/envelope/ is the one for Soap 1.1.
Have you tried changing the soapVersion attribute to 1.2 ?
On 5/24/07, sdan <sd...@yahoo.com> 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#a10788357
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/