Interview Questions

A full SOAP fault

SOAP Interview Questions and Answers


(Continued from previous question...)

A full SOAP fault

SOAP faults have some standard fields and some application-specific fields.

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset="utf-8"
Content-Length: 489
<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://www.www.org/soap/envelope/">
<SOAP-ENV:Body>
<SOAP-ENV:Fault>
<faultcode>SOAP-ENV:Client</faultcode>
<faultstring>Client Error</faultstring>
<detail>
<c:invalidDate xmlns:c="http://www.soap.net/soap-example/calendar">
<c:field>month
</c:invalidDate>
</detail>
</SOAP-ENV:Fault>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

(Continued on next question...)

Other Interview Questions