- From: Rogers, Tony <Tony.Rogers@ca.com>
- Date: Tue, 3 Oct 2006 15:20:53 +1000
- To: "Ramkumar Menon" <ramkumar.menon@gmail.com>, <public-ws-addressing@w3.org>
- Message-ID: <BEE2BD647C052D4FA59B42F5E2D946B317B665@AUSYMS12.ca.com>
No. You should only send Faults to a FaultTo address. If you must send a normal SOAP message for a fault, then what you can do is to define your own MEP (you may not know it, but you are able to define your own MEPs). Your MEP's pattern would be IN-OUT-OUT (or possibly IN-optional OUT-optional OUT), which is not a standard MEP, but that is why you need to define it. Then you can provide EPRs for both of the output messages. If you define your own MEP then this can be a single operation - which it is; it is NOT a bunch of one-way operations that have a hidden connection - it is a single operation with one input and two optional output messages. Or you might define this as a true IN-OUT operation, and send Faults for the faults (which makes more sense!) - then you can use FaultTo in the way it is intended. To be honest, it sounds like the WSDL 1.1 service you are trying to support is trying to hack together the effect of ReplyTo and FaultTo - it is probably better to replace this with the real WS-Addressing approach, even if it does mean replacing the code that receives the faults (so it expects Fault rather than a normal message). Tony Rogers CA, Inc Senior Architect, Development tony.rogers@ca.com co-chair UDDI TC at OASIS co-chair WS-Desc WG at W3C ________________________________ From: public-ws-addressing-request@w3.org on behalf of Ramkumar Menon Sent: Tue 03-Oct-06 8:30 To: public-ws-addressing@w3.org Subject: Clarification on Sending Faults Hi Gurus, I had a few questions troubling me, and would appreciate your response in this matter. Is it mandatory that "only" SOAP faults are sent back to the Fault endpoint ? Is it valid to send SOAP replies rather than SOAP faults to the fault endpoint ? My question arises from the fact that I have a Service defined by a WSDL 1.1 document, where I define two portTypes. The first portType has a single one-way operation [lets say, callled invokeService]. The second portType has two operations namely receiveAckFromService, and receiveFaultFromService. Each of these operations are one-way operations. The caller sets the FaultTo set to an endpoint for the portType corresponding to receiveFaultFromService, and sends a simple SOAP message [not a fault message] in case any fault occurs in the service. Is this a valid scenario ? rgds, Ram -- Shift to the left, shift to the right! Pop up, push down, byte, byte, byte! -Ramkumar Menon A typical Macroprocessor
Received on Tuesday, 3 October 2006 05:21:04 UTC