issue with EVENTINVENTORY WEB SERVICES

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

yes.
As long has you get
Ping services.Preview.EventInventory.com [204.14.204.53]
(i.e. an ip address like [www.xxx.yyy.zzz] but no unknow host message) you shouldn't get the
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 27
message if the php scripts runs on the same machine.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

so what do you think that what could be the possible solution?

thanks for the reply
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

volka wrote:Your server is not able to resolve services.Preview.EventInventory.com to 204.14.204.53
this
itsmani1 wrote:in /opt/lampp/htdocs/projects/Mannan/nutest.php on line 27
indicates it's a unix/linux-like server. This is the machine where you have to fix the name resolution.
volka wrote:What type of server is it?
volka wrote:Is this your own private (homebrew) server?
volka wrote:If you have a manual for it see if there are how-tos for address resolution, dns, arp or similar.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

well the server is at my work place and its a linux machine and I don't have manual for it. i don't knwo to resolve the address let see.
is there any guess method available for it?
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

What linux distribution do you use? In case of doubt uname -a probably will tell you.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

It says:
Lunux localhost.localdomain 2.6.5-1.358 #1 Sat May 8 09:04:50 EDT 2004 i686 i686 i386 GNU/Linux
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

Then I'm clueless. Someone must have installed the system and should therefore know what distribution was used.
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

Your server is not able to resolve services.Preview.EventInventory.com to 204.14.204.53
What i need to do so that my server start resolving "services.Preview.EventInventory.com"
What do I need to install? or is there anything installed and its preventing to resolve?

thnaks for the response
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

My advise: Find out what distribution is installed on the server. Than search for the distribution specific manual or distribution specific guides on the internet.
Who installed the server? Who's maintaining it? Is there an administrator for that server?
User avatar
itsmani1
Forum Regular
Posts: 791
Joined: Mon Sep 29, 2003 2:26 am
Location: Islamabad Pakistan
Contact:

Post by itsmani1 »

Hello ...

Finally its done someway and here is the code which is working now.
to see the result please see : http://208.109.22.111/ticketchest/nutest.php

Code: Select all

<?PHP
require_once('lib/nusoap.php');
// define parameter array
$param = array( 'APPCLIENT_ID' => '2220','EVENT_ID' => '6','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)
{
    

  // Display the result
  echo '<h2>Result</h2>';
  var_dump($result);
  
  // Display the request and response
  echo '<h2>Request</h2>';
  echo '<pre>' . htmlspecialchars($soapclient->request, ENT_QUOTES) . '</pre>';
  echo '<h2>Response</h2>';
  echo '<pre>' . htmlspecialchars($soapclient->response, ENT_QUOTES) . '</pre>';
  
    // Display the debug messages
  echo '<h2>Debug</h2>';
  echo '<pre>' . htmlspecialchars($soapclient->debug_str, ENT_QUOTES) . '</pre>';

}
else
{
	print "No result";
}
// kill object
unset($soapclient);
?>
Post Reply