issue with EVENTINVENTORY WEB SERVICES
Posted: Thu Oct 12, 2006 12:41 am
I am using EVENTINVENTORY WEB SERVICES and here is the code they have given in the documnetation. Here are their requirements :
In order to gain access to data, you need the following:
1) A valid security token
2) External IP address of the computer accessing Web Services. This IP Address should be a static IP Address (not dynamic.)
Please pass the above information and we would register your IP Address with EventInventory We Services
I have taken the "CLIENTID" and registered my IP i don't know where to pass it so that i can access it.
In order to gain access to data, you need the following:
1) A valid security token
2) External IP address of the computer accessing Web Services. This IP Address should be a static IP Address (not dynamic.)
Please pass the above information and we would register your IP Address with EventInventory We Services
I have taken the "CLIENTID" and registered my IP i don't know where to pass it so that i can access it.
Code: Select all
/*
1. Get the nuSoap.php version of 0.6.3. This works fine.
Or
2. If you still want to use the 0.6.9 version or later, then replace the following line in nusoap.php
$payload .= $this->serialize_val($v,$k,false,false,false,false,$use);
With
$payload .= $this->serialize_val($v,"$nsPrefix:$k",false,false,false,false,$use);
*/
// include the SOAP classes
require_once('nusoap.php');
// define parameter array
$param = array( 'APPCLIENT_ID' => '*CLIENTID*','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);