Clarification needed: Part 3 sec 2.8.1 and 2.8.2: soap fault codes

Regarding part 3 sec 2.8.1 and 2.8.2: soap fault codes, the meaning of
the {soap fault code} seems unclear. 

Does the fault message type determine the soap fault code, or vice
versa?  For example, given the following:

<binding . . . >
  <fault ref="tns:myFaultMessage"
	wsoap:code="foo" />
</binding

which of the following interpretations applies?

a. If the actual error condition causing the fault corresponds to SOAP
code foo, then transmit a fault of type tns:myFaultMessage.

b. If the actual error condition causing the fault corresponds to
tns:myFaultMessage, then transmit SOAP code foo.

If (a) is the correct interpretation, then what happens if an error
corresponding to a different SOAP code occurs?  Does this imply that a
tns:myFaultMessage will NOT be sent if the SOAP code is NOT foo?

-- 

David Booth
W3C Fellow / Hewlett-Packard

Received on Sunday, 12 December 2004 20:59:56 UTC