You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by TO...@sics.se on 2006/03/27 21:42:50 UTC
http-binding and WS-Addressing
Hi,
I send the a soap message below) to my echo service (using
soap-binding),but the result seems to indicate that WS-Addressing is not
used (result below).
Should not the resulting answer refer to the MessageID in the calling
message?
/Tomas
<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"
xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
<soapenv:Header>
<wsa:MessageID
soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
<wsa:To
soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
<wsa:Action
soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
<wsa:From soapenv:mustUnderstand="0">
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
</wsa:From>
</soapenv:Header>
<soapenv:Body>
<ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
<ns1:echoParam>test</ns1:echoParam>
</ns1:echoString>
</soapenv:Body>
</soapenv:Envelope>
<?xml version='1.0' encoding='utf-8'?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<echoStringResponse xmlns="http://www.sics.se/SLAManagement">
<echoResult xmlns="http://www.sics.se/SLAManagement">test and
everybody else</echoResult>
</echoStringResponse>
</env:Body>
</env:Envelope>
Re: http-binding and WS-Addressing
Posted by TO...@sics.se.
I have no problems with wsa:ReplyTo. I'll add a JIRA tomorrow.
/Tomas
> Hi Tomas,
>
> You're quite right. WS-Addressing is not fully implemented and the
> only really supported headers for the moment are wsa:To and
> wsa:Action, but adding support for wsa:MessageId should be easy.
> Could you please raise a JIRA
> (http://issues.apache.org/activemq/browse/SM) for that ?
> Just a question, do you really need wsa:MessageId without the
> wsa:ReplyTo header ?
>
> Cheers,
> Guillaume Nodet
>
> On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
>> Hi,
>>
>> I send the a soap message below) to my echo service (using
>> soap-binding),but the result seems to indicate that WS-Addressing is not
>> used (result below).
>> Should not the resulting answer refer to the MessageID in the calling
>> message?
>>
>> /Tomas
>>
>>
>> <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"
>> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
>> <soapenv:Header>
>> <wsa:MessageID
>> soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
>> <wsa:To
>> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
>> <wsa:Action
>> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
>> <wsa:From soapenv:mustUnderstand="0">
>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>> </wsa:From>
>> </soapenv:Header>
>> <soapenv:Body>
>> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
>> <ns1:echoParam>test</ns1:echoParam>
>> </ns1:echoString>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>>
>>
>>
>>
>> <?xml version='1.0' encoding='utf-8'?>
>> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>> <env:Body>
>> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
>> <echoResult xmlns="http://www.sics.se/SLAManagement">test
>> and
>> everybody else</echoResult>
>> </echoStringResponse>
>> </env:Body>
>> </env:Envelope>
>>
>>
>>
>
Re: http-binding and WS-Addressing
Posted by Guillaume Nodet <gn...@gmail.com>.
Hi Tomas,
You're quite right. WS-Addressing is not fully implemented and the
only really supported headers for the moment are wsa:To and
wsa:Action, but adding support for wsa:MessageId should be easy.
Could you please raise a JIRA
(http://issues.apache.org/activemq/browse/SM) for that ?
Just a question, do you really need wsa:MessageId without the
wsa:ReplyTo header ?
Cheers,
Guillaume Nodet
On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
> Hi,
>
> I send the a soap message below) to my echo service (using
> soap-binding),but the result seems to indicate that WS-Addressing is not
> used (result below).
> Should not the resulting answer refer to the MessageID in the calling
> message?
>
> /Tomas
>
>
> <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"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
> <soapenv:Header>
> <wsa:MessageID
> soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
> <wsa:To
> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
> <wsa:Action
> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
> <wsa:From soapenv:mustUnderstand="0">
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> </wsa:From>
> </soapenv:Header>
> <soapenv:Body>
> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
> <ns1:echoParam>test</ns1:echoParam>
> </ns1:echoString>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
>
>
>
> <?xml version='1.0' encoding='utf-8'?>
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> <env:Body>
> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
> everybody else</echoResult>
> </echoStringResponse>
> </env:Body>
> </env:Envelope>
>
>
>
Re: http-binding and WS-Addressing
Posted by Guillaume Nodet <gn...@gmail.com>.
Done.
Guillaume Nodet
On 3/28/06, Tomas Olsson <to...@sics.se> wrote:
> Yes, please. That would simplify for me. I use a package to generate the
> addressing header stuff, and I cannot easily change how that is done.
>
> /Tomas
>
> Guillaume Nodet wrote:
>
> >Is that a problem for you ?
> >I can add this namespace also...
> >
> >Guillaume Nodet
> >
> >On 3/28/06, Tomas Olsson <to...@sics.se> wrote:
> >
> >
> >>It still does not work, but from looking into the source code of
> >>AddressingHandler I guess it is because the
> >>"http://schemas.xmlsoap.org/ws/2004/03/addressing"-version is not
> >>implemented, but "only" 2003/03, 2004/08 and 2005/03.
> >>
> >>/Tomas
> >>
> >>Guillaume Nodet wrote:
> >>
> >>
> >>
> >>>This is now possible using svn head.
> >>>
> >>>Cheers,
> >>>Guillaume Nodet
> >>>
> >>>On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>Hi,
> >>>>
> >>>>I send the a soap message below) to my echo service (using
> >>>>soap-binding),but the result seems to indicate that WS-Addressing is not
> >>>>used (result below).
> >>>>Should not the resulting answer refer to the MessageID in the calling
> >>>>message?
> >>>>
> >>>>/Tomas
> >>>>
> >>>>
> >>>><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"
> >>>>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
> >>>> <soapenv:Header>
> >>>> <wsa:MessageID
> >>>>soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
> >>>> <wsa:To
> >>>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
> >>>> <wsa:Action
> >>>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
> >>>> <wsa:From soapenv:mustUnderstand="0">
> >>>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >>>> </wsa:From>
> >>>> </soapenv:Header>
> >>>> <soapenv:Body>
> >>>> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
> >>>> <ns1:echoParam>test</ns1:echoParam>
> >>>> </ns1:echoString>
> >>>> </soapenv:Body>
> >>>></soapenv:Envelope>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>><?xml version='1.0' encoding='utf-8'?>
> >>>> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >>>> <env:Body>
> >>>> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
> >>>> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
> >>>>everybody else</echoResult>
> >>>> </echoStringResponse>
> >>>> </env:Body>
> >>>> </env:Envelope>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>
> >>
>
>
Re: http-binding and WS-Addressing
Posted by Tomas Olsson <to...@sics.se>.
Yes, please. That would simplify for me. I use a package to generate the
addressing header stuff, and I cannot easily change how that is done.
/Tomas
Guillaume Nodet wrote:
>Is that a problem for you ?
>I can add this namespace also...
>
>Guillaume Nodet
>
>On 3/28/06, Tomas Olsson <to...@sics.se> wrote:
>
>
>>It still does not work, but from looking into the source code of
>>AddressingHandler I guess it is because the
>>"http://schemas.xmlsoap.org/ws/2004/03/addressing"-version is not
>>implemented, but "only" 2003/03, 2004/08 and 2005/03.
>>
>>/Tomas
>>
>>Guillaume Nodet wrote:
>>
>>
>>
>>>This is now possible using svn head.
>>>
>>>Cheers,
>>>Guillaume Nodet
>>>
>>>On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
>>>
>>>
>>>
>>>
>>>>Hi,
>>>>
>>>>I send the a soap message below) to my echo service (using
>>>>soap-binding),but the result seems to indicate that WS-Addressing is not
>>>>used (result below).
>>>>Should not the resulting answer refer to the MessageID in the calling
>>>>message?
>>>>
>>>>/Tomas
>>>>
>>>>
>>>><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"
>>>>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
>>>> <soapenv:Header>
>>>> <wsa:MessageID
>>>>soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
>>>> <wsa:To
>>>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
>>>> <wsa:Action
>>>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
>>>> <wsa:From soapenv:mustUnderstand="0">
>>>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>>>> </wsa:From>
>>>> </soapenv:Header>
>>>> <soapenv:Body>
>>>> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
>>>> <ns1:echoParam>test</ns1:echoParam>
>>>> </ns1:echoString>
>>>> </soapenv:Body>
>>>></soapenv:Envelope>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>><?xml version='1.0' encoding='utf-8'?>
>>>> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>>>> <env:Body>
>>>> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
>>>> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
>>>>everybody else</echoResult>
>>>> </echoStringResponse>
>>>> </env:Body>
>>>> </env:Envelope>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>
>>
Re: http-binding and WS-Addressing
Posted by Guillaume Nodet <gn...@gmail.com>.
Is that a problem for you ?
I can add this namespace also...
Guillaume Nodet
On 3/28/06, Tomas Olsson <to...@sics.se> wrote:
> It still does not work, but from looking into the source code of
> AddressingHandler I guess it is because the
> "http://schemas.xmlsoap.org/ws/2004/03/addressing"-version is not
> implemented, but "only" 2003/03, 2004/08 and 2005/03.
>
> /Tomas
>
> Guillaume Nodet wrote:
>
> >This is now possible using svn head.
> >
> >Cheers,
> >Guillaume Nodet
> >
> >On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
> >
> >
> >>Hi,
> >>
> >>I send the a soap message below) to my echo service (using
> >>soap-binding),but the result seems to indicate that WS-Addressing is not
> >>used (result below).
> >>Should not the resulting answer refer to the MessageID in the calling
> >>message?
> >>
> >>/Tomas
> >>
> >>
> >><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"
> >>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
> >> <soapenv:Header>
> >> <wsa:MessageID
> >>soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
> >> <wsa:To
> >>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
> >> <wsa:Action
> >>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
> >> <wsa:From soapenv:mustUnderstand="0">
> >> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> >> </wsa:From>
> >> </soapenv:Header>
> >> <soapenv:Body>
> >> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
> >> <ns1:echoParam>test</ns1:echoParam>
> >> </ns1:echoString>
> >> </soapenv:Body>
> >></soapenv:Envelope>
> >>
> >>
> >>
> >>
> >>
> >><?xml version='1.0' encoding='utf-8'?>
> >> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> >> <env:Body>
> >> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
> >> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
> >>everybody else</echoResult>
> >> </echoStringResponse>
> >> </env:Body>
> >> </env:Envelope>
> >>
> >>
> >>
> >>
> >>
>
>
Re: http-binding and WS-Addressing
Posted by Tomas Olsson <to...@sics.se>.
It still does not work, but from looking into the source code of
AddressingHandler I guess it is because the
"http://schemas.xmlsoap.org/ws/2004/03/addressing"-version is not
implemented, but "only" 2003/03, 2004/08 and 2005/03.
/Tomas
Guillaume Nodet wrote:
>This is now possible using svn head.
>
>Cheers,
>Guillaume Nodet
>
>On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
>
>
>>Hi,
>>
>>I send the a soap message below) to my echo service (using
>>soap-binding),but the result seems to indicate that WS-Addressing is not
>>used (result below).
>>Should not the resulting answer refer to the MessageID in the calling
>>message?
>>
>>/Tomas
>>
>>
>><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"
>>xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
>> <soapenv:Header>
>> <wsa:MessageID
>>soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
>> <wsa:To
>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
>> <wsa:Action
>>soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
>> <wsa:From soapenv:mustUnderstand="0">
>> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
>> </wsa:From>
>> </soapenv:Header>
>> <soapenv:Body>
>> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
>> <ns1:echoParam>test</ns1:echoParam>
>> </ns1:echoString>
>> </soapenv:Body>
>></soapenv:Envelope>
>>
>>
>>
>>
>>
>><?xml version='1.0' encoding='utf-8'?>
>> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
>> <env:Body>
>> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
>> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
>>everybody else</echoResult>
>> </echoStringResponse>
>> </env:Body>
>> </env:Envelope>
>>
>>
>>
>>
>>
Re: http-binding and WS-Addressing
Posted by Guillaume Nodet <gn...@gmail.com>.
This is now possible using svn head.
Cheers,
Guillaume Nodet
On 3/27/06, TOL@sics.se <TO...@sics.se> wrote:
> Hi,
>
> I send the a soap message below) to my echo service (using
> soap-binding),but the result seems to indicate that WS-Addressing is not
> used (result below).
> Should not the resulting answer refer to the MessageID in the calling
> message?
>
> /Tomas
>
>
> <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"
> xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing">
> <soapenv:Header>
> <wsa:MessageID
> soapenv:mustUnderstand="0">uuid:8ec401d0-bdc8-11da-b8db-91b58d3279dc</wsa:MessageID>
> <wsa:To
> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/</wsa:To>
> <wsa:Action
> soapenv:mustUnderstand="0">http://localhost:9080/SLAManagerService/EchoString</wsa:Action>
> <wsa:From soapenv:mustUnderstand="0">
> <wsa:Address>http://schemas.xmlsoap.org/ws/2004/03/addressing/role/anonymous</wsa:Address>
> </wsa:From>
> </soapenv:Header>
> <soapenv:Body>
> <ns1:echoString xmlns:ns1="http://www.sics.se/SLAManagement">
> <ns1:echoParam>test</ns1:echoParam>
> </ns1:echoString>
> </soapenv:Body>
> </soapenv:Envelope>
>
>
>
>
>
> <?xml version='1.0' encoding='utf-8'?>
> <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
> <env:Body>
> <echoStringResponse xmlns="http://www.sics.se/SLAManagement">
> <echoResult xmlns="http://www.sics.se/SLAManagement">test and
> everybody else</echoResult>
> </echoStringResponse>
> </env:Body>
> </env:Envelope>
>
>
>