Guest User

Untitled

a guest
Jun 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. // $client is PHP's SoapClient class
  2. try {
  3. $response = $client->SomeSoapRequest();
  4. }
  5. catch(SoapFault $e){
  6. // handle issues returned by the web service
  7. }
  8. catch(Exception $e){
  9. // handle PHP issues with the request
  10. }
  11.  
  12. $client = new SoapClient($wsdl, array("connection_timeout"=>10));
  13.  
  14. // SET SOCKET TIMEOUT
  15. if(defined('RESPONSE_TIMEOUT') && RESPONSE_TIMEOUT != '') {
  16. ini_set('default_socket_timeout', RESPONSE_TIMEOUT);
  17. }
Add Comment
Please, Sign In to add comment