本文介绍了nusoap_client:错误:HTTP错误:无法打开到服务器http的套接字连接:/的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我想提前感谢您的支持。我正在尝试使用PHP编写的用java编写的Web服务。当我运行代码时出现此错误: -

HTTP错误:无法打开到服务器的套接字连接http://mpv20155.sidi.mpi.it:7778/SSANWSTRS/IstituzScolasticheWSTrsSoapHttpPort,错误( 10060):Impossibile stabilire la connessione。 Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato。:



///////////// /////////////

任何人都可以帮助我,谢谢,这是我写的代码:

//拉入NuSOAP代码

require_once('nusoap.php');

//创建客户端实例

// $ client = new nusoap_client('http ://localhost/testwsdl/server.php');

//检查错误



$ client = new nusoap_client( https://roberto.bonica:Password522 @ wssidi1.pubblica.istruzione.it/SSANWSTRS/IstituzScolasticheWSTrsSoapHttpPort?WSDL,array('exceptions'=> 0));



$ err = $ client-> getError();

if($ err){

//显示错误

echo'

构造函数错误

Hi everyone, I want to say thanks for your support in advance. I am trying to consume a web service which written in java using PHP. When I run the code i got this error :-
HTTP Error: Couldn't open socket connection to server http://mpv20155.sidi.mpi.it:7778/SSANWSTRS/IstituzScolasticheWSTrsSoapHttpPort, Error (10060): Impossibile stabilire la connessione. Risposta non corretta della parte connessa dopo l'intervallo di tempo oppure mancata risposta dall'host collegato.:

//////////////////////////
Can anyone help me out thanks, this is the code that i wrote:
// Pull in the NuSOAP code
require_once('nusoap.php');
// Create the client instance
//$client = new nusoap_client('http://localhost/testwsdl/server.php');
// Check for an error

$client = new nusoap_client("https://roberto.bonica:[email protected]/SSANWSTRS/IstituzScolasticheWSTrsSoapHttpPort?WSDL", array('exceptions' => 0));

$err = $client->getError();
if ($err) {
// Display the error
echo '

Constructor error

' . $err . '

';

//此时,你知道接下来的电话会失败

}

$ filtro = array(annoScolastico=>'2012',

codiceDebole=>'TAMM00600C',

flusso=>'HS00',

fornitore=>'SYSC',

versioneSw=>'00000000');



$ result2 = $ client-> call('estrazioneIstituzioniScolastiche',$ filtro,true,false);

//检查一个错误

if($ client-> fault)

{

echo'

Fault

';
    print_r($result2);
    echo '

';

}

else

{

//检查错误

$ err2 = $ client-> getError();

if($ err2)

{

//显示错误

echo'

Error2

' . $err2 . '

';

}

else

{

//显示结果

echo'

Result2

';
       print_r($result2);
       echo '

';

}

}

?>

//显示请求和响应

echo'

Request2

';

echo'

';
}
}
?>
// Display the request and response
echo '

Request2

';
echo '

' . htmlspecialchars($client->request, ENT_QUOTES) . '

';



echo'

Response2

';

echo'

';

echo '

Response2

';
echo '

' . htmlspecialchars($client->response, ENT_QUOTES) . '

';



echo'

debug2

';

echo'

';

echo '

debug2

';
echo '

' . htmlspecialchars($client->debug_str, ENT_QUOTES) . '

';

?>

';
?>

推荐答案




这篇关于nusoap_client:错误:HTTP错误:无法打开到服务器http的套接字连接:/的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 16:22