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!
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!