Advertisement
Guest User

Untitled

a guest
Mar 21st, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.58 KB | None | 0 0
  1. $wsdl = 'http://<machineip>:48620/Metadata/Legacy/Full/DynamicsGP.wsdl';
  2.         $trace = true;
  3.         $exceptions = false;
  4.         $aHTTP['http']['header'] =  "User-Agent: PHP-SOAP/5.5.11\r\n";
  5.         $aHTTP['http']['header'].= "username: user\r\n"."password: pass\r\n";
  6.         $context = stream_context_create($aHTTP);
  7.  
  8.         $xml_array['PONUMBER'] = '2725865';
  9.  
  10.         $client = new SoapClient($wsdl, array('trace' => $trace, 'exceptions' => $exceptions, 'stream_context' => $context));
  11.         $response = $client->GetPurchaseOrderByKey($xml_array);
  12.  
  13.         dd($response);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement