Web Analytics Made Easy -
StatCounter issue with EVENTINVENTORY WEB SERVICES - CodingForum

Announcement

Collapse
No announcement yet.

issue with EVENTINVENTORY WEB SERVICES

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • issue with EVENTINVENTORY WEB SERVICES

    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
    PHP 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); 
    if i use php 4.3 and use my own soap i gets following resutl:
    No result
    In this case here is my coad:
    PHP Code:
    require_once('lib/nusoap.php');

    // 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); 
    Dizyn : Custom Web Development and Website Design
    Offshore Outsourcing

  • #2
    server path should not be a URL i am guessing.. or you have an incorrect URL set in the server path.

    Comment


    • #3
      no i don't thinks so.
      Dizyn : Custom Web Development and Website Design
      Offshore Outsourcing

      Comment


      • #4
        Problem SOLVED
        Dizyn : Custom Web Development and Website Design
        Offshore Outsourcing

        Comment


        • #5
          someting was wrong with:
          $srv ='http://services.Preview.EventInventory.com/webservices/TicketSearch.asmx';

          $nspace="http://www.eventinventory.com/webservices/";
          Dizyn : Custom Web Development and Website Design
          Offshore Outsourcing

          Comment

          Working...
          X