Interview Questions

SOAP Toolkit FAQ - What does the Soap Toolkit fault Detail element contain?

SOAP Interview Questions and Answers


(Continued from previous question...)

SOAP Toolkit FAQ - What does the Soap Toolkit fault Detail element contain?

The detail section is namespace qualified, using the following namespace:

http://schemas.microsoft.com/soap-toolkit/faultdetail/error/

All Soap Toolkit specific information goes into the following skeleton:

<soap:fault....>
<detail>
<mserror:errorInfo
xmlns:mserror="http://schemas.microsoft.com/soap-
toolkit/faultdetail/error/">
<mserror:returnCode></mserror:returnCode>
<mserror:serverErrorInfo>
<mserror:description></mserror:description>
<mserror:source></mserror:source>
<mserror:helpFile></mserror:helpFile>
<mserror:helpContext></mserror:helpContext>
</mserror:serverErrorInfo>
<mserror:callStack>
<mserror:callElement>
<mserror:component></mserror:component>
<mserror:description></mserror:description>
<mserror:returnCode></mserror:returnCode>
</mserror:callElement>
</mserror:callStack>
</mserror:errorInfo>
</detail>


herefore, assuming we have assembled rich error information, we will create the extended errorinfo section starting with the mserror:errorInfo element. Inside the first child is the returnCode, which goes into the HR of the Error object on the client.

If the failure was caused by something providing an errorinfo object itself on the server (such as the servercomponent getting called), then (and only then, so the following is not always needed) we create the mserror:serverErrorInfo section. All fields in this section are optional—although when a helpfile is persisted you always get a helpContext in addition—and the fields will only be persisted if the server had information in them. These fields, if present, go into the Error object on the client.

(Continued on next question...)

Other Interview Questions