Jump to content

issue with EVENTINVENTORY WEB SERVICES


dizyn

Recommended Posts

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.eventinventory.com/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.eventinventory.com/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.eventinventory.com/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
[code]
// 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);

[/code]
Link to comment
https://forums.phpfreaks.com/topic/23917-issue-with-eventinventory-web-services/
Share on other sites

  • 4 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.