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!
(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.
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?
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?
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?
<?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);
?>