Skip to content

Instantly share code, notes, and snippets.

@bmadigan
Created September 12, 2016 16:06
Show Gist options
  • Save bmadigan/59d969dbe0573cd91621d899c7d920fb to your computer and use it in GitHub Desktop.
Save bmadigan/59d969dbe0573cd91621d899c7d920fb to your computer and use it in GitHub Desktop.
Steelhead Soap Request
<?php
//$wsdl_url = 'https://www.steelroads.com/wsdl/com/steelroads/ws/model/TatService.wsdl';
$wsdl_url = 'https://www.steelroads.com/services/TatService';
$username = 'username1';
$password = 'secret';
$client = new SoapClient($wsdl_url, array("soap_version" => SOAP_1_1,"trace" => 1));
$user_param = array (
'WebProviderLoginId' => $username,
'WebProviderPassword' => $password,
'IsAgent' => false
);
$service_param = array (
'objSecurity' => $user_param,
"OutPut" => NULL,
"ErrorMsg" => NULL
);
print_r(
$client->__soapCall(
"equipmentList", // runDynamicTrace
array($service_param)
)
);
echo $client->__getLastRequest();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment