[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [wsrf] Possible Issue with Base faults and/or other specs
This is a good point. I've been meaning to raise it myself. Even if the specs don't mandate how to handle "other" errors (unclassified client errors or internal server errors), I think they should at least recommend something. Here are a few possibilities: 1) return a generic wsbf:BaseFault; if it is a client error, include a clear description of what was wrong with the client request in the optional wsbf:Description element 2) return a generic wsbf:BaseFault indicating whether it is a client or a server error via some predefined values for the optional wsbf:ErrorCode element (e.g. wsbf:Sender and wsbf:Receiver) 3) return a generic wsbf:BaseFault indicating whether it is a client or a server error by setting the SOAP fault code to either soapenv12:Sender or soapenv12:Receiver 4) define two standard extensions of wsbf:BaseFaultType, one that indicates a client error (e.g. wsbf:SenderCausedBaseFault) and one that indicates a server error (e.g. wsbf:ReceiverCausedBaseFault), and return one of those 5) some combination of the above In the Apache implementation of WSRF, we currently do #1. Ian | -----Original Message----- | From: David Snelling [mailto:David.Snelling@UK.Fujitsu.com] | Sent: Friday, May 13, 2005 6:39 AM | To: WSRF | Subject: [wsrf] Possible Issue with Base faults and/or other specs | | Folks, | | A colleague at Fujitsu picked this up: Do we have a issue on | this already? | | > | >> ------------------------------------------------------- | >> 4. Fault message for Unexpected fault. | >> ------------------------------------------------------- | >> Many types of fault message are defined for the operations in WSRF | >> specs. | >> But the specs does not support the faults other than | specified faults. | >> For example, there is the following description at the | definitions of | >> GetResourceProperty. | >> | >> If the WS-Resource does not respond to the GetResourceProperty | >> request | >> message with the GetResourcePropertyResponse message, then | >> | >> !! " ""it MUST send one of the following fault messages:"" | >> | >> ResourceUnknownFault..... | >> InvalidResourcePropertyQName.... | >> | >> In case of an error other than expected above (such as a system | >> error), what kind of fault message should be thrown? | > | | -- | | Take care: | | Dr. David Snelling < David . Snelling . UK . Fujitsu . com > | Fujitsu Laboratories of Europe | Hayes Park Central | Hayes End Road | Hayes, Middlesex UB4 8FE | | +44-208-606-4649 (Office) | +44-208-606-4539 (Fax) | +44-7768-807526 (Mobile) | |
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]