How to handle soap-fault

Hi,
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 generated.so we need to handle it and manually throw an exception.

Am i right?

Thanks
Bharath

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