Page 2 of 2

Posted: Sat Oct 14, 2006 6:30 am
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.

Posted: Sat Oct 14, 2006 3:24 pm
by itsmani1
so what do you think that what could be the possible solution?

thanks for the reply

Posted: Sat Oct 14, 2006 3:30 pm
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.

Posted: Sun Oct 15, 2006 12:02 pm
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?

Posted: Sun Oct 15, 2006 12:19 pm
by volka
What linux distribution do you use? In case of doubt uname -a probably will tell you.

Posted: Sun Oct 15, 2006 11:48 pm
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

Posted: Mon Oct 16, 2006 12:05 am
by volka
Then I'm clueless. Someone must have installed the system and should therefore know what distribution was used.

Posted: Mon Oct 16, 2006 2:11 am
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

Posted: Mon Oct 16, 2006 6:46 am
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?

Posted: Thu Oct 19, 2006 1:46 am
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);
?>