Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. $client = new SoapClient($wsdl);
  2. $client->__setSoapHeaders(
  3. new SoapHeader(
  4. $nameSpace,
  5. 'Security',
  6. $secHeaderValue,
  7. true
  8. )
  9. );
  10.  
  11. // The actual call
  12. $response = $client->Complete($paramswebservice)
  13.  
  14. $responseHeaders = $client->__getLastResponseHeaders();
  15. var_dump($responseHeaders);
  16.  
  17. /**
  18. * Returns the HTTP Status code of $response
  19. * @param string $response
  20. * @return string
  21. */
  22. function extract_response_http_code($response) {
  23. $tmp = explode('n', $response);
  24. $array = explode(' ', $tmp[0]);
  25.  
  26. return $array[1];
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement