CODE
SoapFault Object
(
[message:protected] => SOAP-ERROR: Parsing WSDL: 'GetHardwareByIPAddressRequest' already defined
[string:private] =>
[code:protected] => 0
[file:protected] => /home/reseller/site/library/xxxxx/Service/Orbit.php
[line:protected] => 40
[trace:private] => Array
(
[0] => Array
(
[file] => /home/reseller/site/library/xxxxx/Service/Orbit.php
[line] => 40
[function] => SoapClient
[class] => SoapClient
[type] => ->
[args] => Array
(
[0] => https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL
[1] => Array
(
[login] => xxxxx
[password] =>xxxxx
)
)
)
(
[message:protected] => SOAP-ERROR: Parsing WSDL: 'GetHardwareByIPAddressRequest' already defined
[string:private] =>
[code:protected] => 0
[file:protected] => /home/reseller/site/library/xxxxx/Service/Orbit.php
[line:protected] => 40
[trace:private] => Array
(
[0] => Array
(
[file] => /home/reseller/site/library/xxxxx/Service/Orbit.php
[line] => 40
[function] => SoapClient
[class] => SoapClient
[type] => ->
[args] => Array
(
[0] => https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL
[1] => Array
(
[login] => xxxxx
[password] =>xxxxx
)
)
)
Bellow is the PHP code that i am using:
CODE
<?php
ini_set('soap.wsdl_cache_enabled', false);
$wsdl_url = 'https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL';
$params = array(
"login" => "xxxxxx", //your orbit api username
"password" => "xxxxx", //your orbit api password
'trace' => true
);
try {
$hw_svc = new SoapClient($wsdl_url, $params);
} catch (Exception $e) {
echo "<pre>";
echo print_r($e);
}
?>
ini_set('soap.wsdl_cache_enabled', false);
$wsdl_url = 'https://api.theplanet.com/Svc/HardwareHardwareService.svc?WSDL';
$params = array(
"login" => "xxxxxx", //your orbit api username
"password" => "xxxxx", //your orbit api password
'trace' => true
);
try {
$hw_svc = new SoapClient($wsdl_url, $params);
} catch (Exception $e) {
echo "<pre>";
echo print_r($e);
}
?>
The error looks very similar as the error that i have reported before few days:
'AddTicketRequest' already defined
Maybe is same case ?
