Cathing an exception for SOAP Client |
|
PHP supports a webservice communication via SOAP protocol, so you can easily create a new SOAP client and retrieve data from any webservice. Problem occurs when you get disconnected from the network or cannot access the remote websiervice WSDL. Then the SOAP library displayes an error message and you cannot format it. Here is a simple solution for checking whether the website runs or not and then cathing an exception:
try { |
