Couldn't open socket connection to server. Error (110): Connection timed out

5.5k Views Asked by At

I have the following Webservice which is a third-party WS:

(http:// host:453/INTEGRA/WSRG001.pgm?xml=(PAIS)GT(/PAIS)(ORDEN)JZ9000104(/ORDEN)(TIPO)2(/TIPO)(NUMERO)P734FPS(/NUMERO)) using this tags "<>"

host: 200.114.117.11

It needs to send the parameters by xml or nusoap.

I have the following code as well:

$server = new nusoap_client('http://200.114.117.11:453/INTEGRA/WSRG001.pgm?xml',false);

print_r($server);

$request = array(
               array(
                       array('PAIS' => 'GT'),
                       'STRUCT'
                    ),
               array(
                       array('id_number' => '123'),
                       'STRUCT'
                    )
           );

$row =  $server->call('ORDENTALLER',$orden);
if ($server->fault) {
    echo 'Fault'. print_r($result);
} else {
    // Check for errors
    $err = $server->getError();
    if ($err) {
        // Display the error
        echo 'Error'. $err;
    } else {
        // Display the result
        echo 'Result' . print_r($row);
    }
}

I'm getting:

ErrorHTTP Error: Couldn't open socket connection to server Http// 200.114.117.11:453 / INTEGRA/WSRG001.pgm?xml, Error (110): Connection timed out

Any idea why this is not working? I'm working on CodeIgniter, by the way.

1

There are 1 best solutions below

0
On

You need to allow Port 453 for what you want, allow this port in your firewall

I hope this will help you into the right direction