Last active
March 15, 2017 10:20
-
-
Save rogyar/fbb37e36f53377615627 to your computer and use it in GitHub Desktop.
Soap test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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