What is the purpose of WS-Addressing?
Asked Answered
F

2

8

I'm just confused with ws-addressing.

Wikipedia says it is a specification of transport-neutral mechanisms that allow web services to "communicate addressing information".

Communicate addressing information? Don't SOAP web services already have that ability to begin with, otherwise how would they be able to communicate at all?

What value does it give and why isn't is part of the default stuff to begin with given that it seems to be providing a core functionality?

Fayre answered 29/3, 2013 at 15:5 Comment(0)
C
22

WS-Addressing is most useful in the context of asynchronous communication through different protocols. It's used to label the messages so that the request and delayed responses can be reconciled against each other later on, regardless of which protocol it's sent through.

If you're using HTTP all the way, you will not need WS-Addressing, that's why it's turned off by default. However, we tend to assume that SOAP can be transmitted only through HTTP, when in fact, it can be transmitted through other means, like SMTP or JMS. He's an illustration to deliver the point.

enter image description here

With WS-Addressing, the transport-specific data are copied over to the SOAP headers. This decouples the address data away from the protocol and into the SOAP message itself, achieving the "transport-neutrality" Wikipedia is talking about.

enter image description here

WS-Addressing plays an important role in the WS* group of specifications (i.e. WS-Security, WS-ReliableMessaging, WS-Coordination).

Cubit answered 29/3, 2013 at 15:32 Comment(2)
thanks for the response! i still don't have voting privleges so that's the best I could doFayre
There should be a clickable check mark there to declare you accepted the answer. You'll get your chance to vote when you get more points.Cubit
J
0

According to WS-Addressing specification by W3C organization:

/wsa:MessageID
This OPTIONAL element (of type xs:anyURI) conveys the [message id] property. This element MUST be present if wsa:ReplyTo or wsa:FaultTo is present.

/wsa:ReplyTo
This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [reply endpoint] property. This element MUST be present if a reply is expected. If this element is present, wsa:MessageID MUST be present.

/wsa:FaultTo
This OPTIONAL element (of type wsa:EndpointReferenceType) provides the value for the [fault endpoint] property. If this element is present, wsa:MessageID MUST be present.

Jerusalem answered 12/2, 2016 at 19:15 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.