Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

PB 11.5.1 Custom Exception Mapping to SOAP Fault

Status
Not open for further replies.

ZosoZ

Programmer
Oct 28, 2011
1
US
thread144-1646798

This response is purely from an architecture design view:

An error description field in your PB class should be mapped to the response message error field with the description. Forget about trying to find details in the native PB SoapException. It's not going to happen and besides, the problem isn't in the SOAP exception at all. The web service that you call, should capture a soap exception, for whatever reason, and then should place an error code/description in an error code field/desciption in the RESPONSE. Then, your PB code should have a class that represents the RESPONSE, with an error field/desciption object that SHOULD be deserialized. The first thing you should do when you receieve the response, is check for error codes/descriptions. You can still catch the exception, but use the mapped ie., deserialized fields in your PB Response Message class to view the errors. Of course, the author of the web service that you call SHOULD provide you with available error codes/descriptions his/her service sends back!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top