Skip to content

Instantly share code, notes, and snippets.

@rogyar
Last active March 15, 2017 10:20
Show Gist options
  • Save rogyar/fbb37e36f53377615627 to your computer and use it in GitHub Desktop.
Save rogyar/fbb37e36f53377615627 to your computer and use it in GitHub Desktop.
Soap test
<?php
//$client = new SoapClient('https://pprod-geoship.dpsin.dpdgroup.com/IT4EMWebServices/LoginGeoshipWebservicesImpl?wsdl', array('trace' => 1));
$client = new SoapClient('https://pprod-geoship.dpsin.dpdgroup.com/IT4EMWebServices/CustomerServicesImpl?wsdl', array('trace' => 1));
try {
$data = [
'wsUserName' => 'ATWIX',
'wsPassword' => 'td3WT4aw44',
'wsLang' => 'en',
'applicationType' => 2,
'compId' => 5,
'waSearchParamsVo' => [
'compId' => 5,
// 'cityId' => 52611,
// 'zipCode' => 75001,
'countryId' => 622
]
];
$session = $client->__soapCall("getWorkAreaZipCodeRangeByStreetName", [$data]);
var_dump($session);
} catch (Exception $e) {
echo "Response:\n" . $client->__getLastRequestHeaders() . "\n";
echo "Response:\n" . $client->__getLastResponse() . "\n";
echo "Request:\n" . $client->__getLastRequest() . "\n";
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment