Hi all, im new in this community, id like to seek help in converting this into postman the PHP code below, I wasn’t able to pull it off.
I’m having a hard time setting the location upon creating a new instance of soap client.
The PHP version seems to be working fine
<?php
// Set up the service client
// Get drivers
try {
$client = new SoapClient("https://api.evogps.com/Services/Data/ExportApiDataService.svc/meta?wsdl");
**$client->__setLocation('https://api.evogps.com/Services/Data/ExportApiDataService.svc/basicHttp');**
// Set parameters
$params['userName'] = 'user';
$params['password'] = 'pass';
$drivers = $client->GetDevices($params);
print_r ($drivers);
}
catch (Exception $e) {
echo 'Caught exception:', $e->getMessage(), "\n";
}
?>