What is the appropriate fault code for this type of SOAP fault? (Choose one)

A client sends a required SOAP header in a SOAP message. The server-side process determines that information in the header is invalid and generates a SOAP fault. What is the appropriate fault code for this type of SOAP fault? (Choose one)

A client sends a required SOAP header in a SOAP message. The server-side process determines that information in the header is invalid and generates a SOAP fault. What is the appropriate fault code for this type of SOAP fault? (Choose one)

A.
Client

B.
Server

C.
MustUnderstand

D.
VersionMismatch

E.
HeaderError

F.
InvalidHeader



Leave a Reply 5

Your email address will not be published. Required fields are marked *


Ramy

Ramy

I believe it should be C

leo yu

leo yu

Hi, Ramy, some reference of “mustUnderstand”?

jcf

jcf

J2EE
D E V E L O P E R ’ S H A N D B O O K

A String representation of the SOAP fault code may be gotten and set via the
getFaultCode() and setFaultCode(String) methods. Fault codes are defined
according to the SOAP v1.1 specification and take on a form whereby more generic
codes are defined in the leftmost part of the String and more specific codes are defined
increasingly to the rightmost part of the String. Subcodes are separated by the dot
character (.).The most generic SOAP v1.1 defined fault codes are as shown here:

VersionMismatch: Indicates that the SOAP message does not belong to the
namespace for SOAP envelopes.The namespace thus must belong to the namespace
defined by the javax.xml.soap.SOAPConstants.
URI_NS_SOAP_ENVELOPE String
(http://schemas.xmlsoap.org/soap/envelope/).

MustUnderstand: Indicates that the SOAP message (with mustUnderstand
flagged as on) was not capable of being processed correctly by an intended actor.

Client: Indicates that class of errors associated with the SOAP client improperly
forming the message. For example, the SOAP client may have not provided some
required authentication information and the fault code produced might be
Client.Authentication.

Server: Indicates that class of errors associated with the SOAP server improperly
being able to process the message. For example, the SOAP server may have not
been able to connect to a real-time credit vetting service and the fault code produced
may be Client.PaymentAuthorization

Aneesh

Aneesh

Is the answer A?