• Post Reply Bookmark Topic Watch Topic
  • New Topic

A question on ws-addressing  RSS feed

jigar singh
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Friends,

I was going through WS-addressing topic and as stated Ws-addressing has two basic constructs in WS-Addressing:

>Endpoint references
>Message addressing properties

The following is an example endpoint reference that references the endpoint at the URI "http://wso2.org/addressing/sample":
<wsa:EndpointReference xmlns:wsa="http://www.w3.org/2005/08/addressing">

and Message addressing properties are

MessageAddressing Property Description
wsa:To Provides the destination URI. This property indicates where the message will be sent to.
wsa:From Provides the source endpoint reference. Indicates where the message came from.
wsa:ReplyTo Provides the reply endpoint reference. Indicates where the reply for the request message should be sent to.
etc etc

I did not see where in WSDL we use EndPointReference as part of WS-addressing spec. The was:To has same meaning as was:EndpointReference so how do we exactly use was:EndpointReference in wsdl and code.

is there any wsdl example which shows both constructs ?

Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 3015
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The first example of the WS-Addressing Core gives a simple example of both MAPs and an EPR:

(01) <S:Envelope xmlns:S="http://www.w3.org/2003/05/soap-envelope"
(02) <S:Header>
(03) <wsa:MessageID>http://example.com/6B29FC40-CA47-1067-B31D-00DD010662DA</wsa:MessageID>
(04) <wsa:ReplyTo>
(05) <wsa:Address>http://example.com/business/client1</wsa:Address>
(06) </wsa:ReplyTo>

(07) <wsa:To>http://example.com/fabrikam/Purchasing</wsa:To>
(08) <wsa:Action>http://example.com/fabrikam/SubmitPO</wsa:Action>
(09) </S:Header>
(10) <S:Body>
(11) ...
(12) </S:Body>
(13) </S:Envelope>

Lines (02) to (09) represent the header of the SOAP message where the mechanisms defined in the specification are used. The body is represented by lines (10) to (12).
Lines (03) to (08) contain the message addressing header blocks. Specifically, line (02) specifies the identifier for this message and lines (04) to (06) specify the endpoint to which replies to this message should be sent as an endpoint reference. Line (07) specifies the address URI of the ultimate receiver of this message. Line (08) specifies an action URI identifying expected semantics.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!