On 11/09/2010 07:13 PM, Daniel Kulp wrote:
On Tuesday 09 November 2010 12:47:11 pm KARR, DAVID (ATTSI) wrote:
This isn't specific to CXF, but I couldn't think of a better place to
ask this.

Either in theory or practice, if I send a request with a wsa:replyTo
that points to a different URL, is it possible to receive a soap fault
directly back, as opposed to the "replyTo" address?

Yes, if the faultTo is set.

Dan and I were discussing this recently with regard to JBossWS-CXF. It's interesting to think about what this implies in terms of delivery of the fault.

If FaultTo is unset then a service generated fault gets sent as a response in a request-response exchange. When a fault is dispatched to a FaultTo address it is the incoming payload of a request. So, if your FaultTo endpoint is deployed using JaxWS then it has to be ready to accept this incoming Fault payload and dispatch it using something like the wsa:Action or SoapAction.

I see that WSA also
has a "faultTo" property.  If I set "replyTo", but not "faultTo", where
would soap faults get sent to?

To the replyTo.   If unset, the faultTo is equal to the replyTo.

The WSTF test suite sc003 JaxWS with WSA addresses many of these issues and tries to standardise them. See the details of the scenario here:

  http://www.wstf.org/docs/scenarios/sc003/sc003.xml

WSTF is an implementors standardisation forum:

  http://www.wstf.org/

If I set both "replyTo" and "faultTo" to
the same URL, is there any possibility for the initial request to get
any diagnostic information at all?

Well, yes and no.  If a fault or something occurs BEFORE the processing of the
WS-Addressing headers, it would.   Things like IO exceptions, possibly
security things, malformed XML, etc....   Those would go directly back to the
client.   Once the WS-Addressing maps are processed, the answer is no.

WSTF also tries to distinguish and, where possible, standardise cases where these sort of message delivery faults might be expected to be dispatched on the HTTP back channel vs those where they might be dispatched via the FaultTo address.

regards,


Andrew Dinn
-----------
Principal Software Engineer, JBoss
Red Hat UK Ltd
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire,
SI4 1TE, United Kingdom.
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Charlie Peters (USA), Matt Parsons
(USA)  and Brendan Lane (Ireland)

Reply via email to