[英]Couldn't open socket connection to server. Error (110): Connection timed out
I have the following Webservice which is a third-party WS:我有以下 Web 服务,它是第三方 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主机:200.114.117.11
It needs to send the parameters by xml or nusoap.它需要通过xml或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
ErrorHTTP 错误:无法打开到服务器 Http// 200.114.117.11:453 / INTEGRA/WSRG001.pgm?xml 的套接字连接,错误 (110):连接超时
Any idea why this is not working?知道为什么这不起作用吗? I'm working on CodeIgniter, by the way.
顺便说一下,我正在研究 CodeIgniter。
You need to allow Port 453 for what you want, allow this port in your firewall您需要根据需要允许端口 453,在防火墙中允许此端口
I hope this will help you into the right direction我希望这会帮助你走向正确的方向
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.