CODE
SoapFault Object
(
[message:protected] => SOAP-ERROR: Parsing WSDL: 'AddTicketRequest' already defined
[string:private] =>
[code:protected] => 0
[file:protected] => /home/someware/public_html/orbit/t.php
[line:protected] => 47
[trace:private] => Array
(
[0] => Array
(
[file] => /home/someware/public_html/orbit/t.php
[line] => 47
[function] => SoapClient
[class] => SoapClient
[type] => ->
[args] => Array
(
[0] => https://api.theplanet.com/Svc/TicketTicketService.svc?WSDL
[1] => Array
(
[login] => xxxxxxx
[password] => xxxxxxx
[trace] => 1
)
)
)
)
[faultstring] => SOAP-ERROR: Parsing WSDL: 'AddTicketRequest' already defined
[faultcode] => WSDL
)
(
[message:protected] => SOAP-ERROR: Parsing WSDL: 'AddTicketRequest' already defined
[string:private] =>
[code:protected] => 0
[file:protected] => /home/someware/public_html/orbit/t.php
[line:protected] => 47
[trace:private] => Array
(
[0] => Array
(
[file] => /home/someware/public_html/orbit/t.php
[line] => 47
[function] => SoapClient
[class] => SoapClient
[type] => ->
[args] => Array
(
[0] => https://api.theplanet.com/Svc/TicketTicketService.svc?WSDL
[1] => Array
(
[login] => xxxxxxx
[password] => xxxxxxx
[trace] => 1
)
)
)
)
[faultstring] => SOAP-ERROR: Parsing WSDL: 'AddTicketRequest' already defined
[faultcode] => WSDL
)
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/TicketTicketService.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/TicketTicketService.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);
}
?>
Am i missing something ?