How to handle soap-fault

I am new to webmethods

When webmethods consume a webservice,

Is Soap-fault document generated automatically in the response document of the wsdl ?
and How do we handle the scenario when the target server is down (i.e)retry-mechanism?

Please help me on this guys.

Soap fault will only be sent by the server that offered this service when something went wrong.
If server is down, you should get http level errors, and you should handle that by using the normal
try - catch approach.

Hi tongwang,

Thanks for the response.

I think when the target server is down,only the fault document will be we need to handle it and manually throw an exception.

Am i right?


Your request is beyond SOAP, you can use try-catch to get the HTTP exception, you can generate fault response in the catch section.