Jump to content


Photo

issue with EVENTINVENTORY WEB SERVICES


  • Please log in to reply
1 reply to this topic

#1 dizyn

dizyn
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 14 October 2006 - 04:58 AM

I am working with "EVENTINVENTORY WEB SERVICES" I am using php 5.1.1 where is SOAP is enabled and PHP 4.3 where SOAP is not enabled and I am using my own SOAP.
Here is my PHP coad on PHP 5.1.1 and as a result i see following output. Please help me i am stuck with this problem.

Warning: SoapClient::__construct() [function.--construct]: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86

Warning: SoapClient::__construct(http://webservices.e...m/TicketSearch/) [function.--construct]: failed to open stream: Connection refused in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86

Warning: SoapClient::__construct() [function.--construct]: I/O warning : failed to load external entity "http://webservices.e.../TicketSearch/" in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86

Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://webservices.e...m/TicketSearch/' in /opt/lampp/htdocs/projects/Mannan/nutest.php:86 Stack trace: #0 /opt/lampp/htdocs/projects/Mannan/nutest.php(86): SoapClient->__construct('http://webservi...') #1 {main} thrown in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 86
// define parameter array
$param = array( 'APPCLIENT_ID' => '2220','EVENT_ID' => '','STARTDATE' => '','INCDAYS' => '');

// define path to server application
// Do not hard code the URL here. Get it from a central place like 
// configuration file. The below URL is hard coded just for example
// purpose.
$serverpath ='http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx';

//define method namespace
$namespace="http://www.eventinventory.com/webservices/";

// create client object
$soapclient = new soapclient($serverpath);

//set soap Action
$soapAction='http://www.eventinventory.com/webservices/GetVenueList';

//to see debug messages
//$soapclient -> debug_flag = 1;

 // make the call
$result = $soapclient->call('GetVenueList',$param,$namespace,$soapAction);

// if a fault occurred, output error info
if (isset($fault))
{
        print "Error: ". $fault;
}
else if ($result)
{

        if ($result[faultstring])
        {
         print"<h2>Error:</h2>
         $result[faultstring]";
        }
        else   //show results
        {
  $root=$result[ROOT];
              $data = $root[DATA];
  $row = $data[row];             

for($i=0;$i<count($row);$i++)
             {
                 $venueId = $row[$i]['!VID'];
                 $venueName = $row[$i]['!Name'];
                 $city = $row[$i]['!City'];
                 $state = $row[$i]['!State'];
                 $zip = $row[$i]['!ZipCode'];
                 print"$venueId : $venueName : $city : state :$zip<br>";
             }
        }
}
else {
        print "No result";
        }
// kill object
unset($soapclient);



#2 dizyn

dizyn
  • Members
  • PipPip
  • Member
  • 10 posts

Posted 02 March 2007 - 08:13 AM

Problem with EventInventory web services has been resolved

Event Inventory webservices are working fine for me now.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users