Php SoapFault:无法连接到主机

Php SoapFault:无法连接到主机,php,soap,soap-client,Php,Soap,Soap Client,我用SOAP做了一个Web服务,是下一个吗 $dataws=[ 'serie'=>$factura->serie, 'folio'=>$factura->folio, 'rfc'=>'xxxx123456', 'key'=>'xxxx-xxxx-xxx-xxx-xxxxx' ]; try { $url= 'https://portal3.xsa.com.mx/xsamanager/servicesb2b

我用SOAP做了一个Web服务,是下一个吗

 $dataws=[
    'serie'=>$factura->serie,
    'folio'=>$factura->folio,
    'rfc'=>'xxxx123456',
    'key'=>'xxxx-xxxx-xxx-xxx-xxxxx'
    ];
    try {
    $url= 'https://portal3.xsa.com.mx/xsamanager/servicesb2b/CancelCFDIService?wsdl';              
    echo "<strong>url destino:<pre>";
    print_r ($url);
    echo "</pre></strong>";
        $client = new SoapClient(
            $url,
            array(
                'trace' => true,
                'exceptions' => true,
                'encoding' => 'UTF-8',
                'stream_context'=> stream_context_create(array('ssl'=> array(
                            'verify_peer'=>false,
                            'verify_peer_name'=>false, 
                            'allow_self_signed' => true //can fiddle with this one.
                                 )
                            )
                )
            )
        );
        echo "<strong>Funciones existentes</strong> <pre>";
        print_r ($client->__getFunctions());
        echo "</pre>";
        $response = $client->cancelaCFDI($dataws);
$dataws=[
“serie”=>$factura->serie,
“folio”=>$factura->folio,
“rfc”=>“xxxx123456”,
“密钥”=>“xxxx-xxxx-xxx-xxx-xxxxx”
];
试一试{
$url='1https://portal3.xsa.com.mx/xsamanager/servicesb2b/CancelCFDIService?wsdl';              
echo“url destino:”;
Whoops, looks like something went wrong.

1/1
SoapFault in FacturasController.php line 726:
Could not connect to host
in FacturasController.php line 726
at SoapClient->__doRequest('<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://ws.cancel.manager.xsa.tralix.com"><SOAP-ENV:Body><ns1:cancelaCFDI><ns1:serie>NUVEM</ns1:serie><ns1:folio>7</ns1:folio><ns1:key>b6769894-fef7-4c1c-9d60-176de99377c4</ns1:key></ns1:cancelaCFDI></SOAP-ENV:Body></SOAP-ENV:Envelope> ', 'http://10.10.10.41:8080/xsamanager/servicesb2b/CancelCFDIService/', '', '1', '0')
at SoapClient->__call('cancelaCFDI', array(array('serie' => 'NUVEM', 'folio' => '7', 'rfc' => 'NHI120830831', 'key' => 'b6769894-fef7-4c1c-9d60-176de99377c4'))) in FacturasController.php line 726
at SoapClient->cancelaCFDI(array('serie' => 'NUVEM', 'folio' => '7', 'rfc' => 'NHI120830831', 'key' => 'b6769894-fef7-4c1c-9d60-176de99377c4')) in FacturasController.php line 726
打印(url); 回声“
”; $client=新的SoapClient( $url, 排列( 'trace'=>true, “例外情况”=>true, '编码'=>'UTF-8', 'stream\u context'=>stream\u context\u创建(数组('ssl'=>array( “验证对等方”=>false, 'verify_peer_name'=>false, 'allow_self_signed'=>true//可以处理这个问题。 ) ) ) ) ); 回声“存在的功能”; 打印($client->uu getFunctions()); 回声“; $response=$client->cancelaCFDI($dataws);
调用函数$client->\uuu getFunctions()时, 展示这个

现存功能 排列 ( [0]=>取消ACFDI响应取消ACFDI(取消ACFDI$参数) [1] =>mensajeResponse mensaje(mensaje$参数) )

显示函数,但调用函数$client->cancelaCFDI($dataws)结果如下:

哎呀,好像出了什么事。 1/1 FacturasController.php第726行中的SoapFault: 无法连接到主机 实际上是一个控制器.php行726 在SoapClient->uu doRequest('NUVEM7b6769894-fef7-4c1c-9d60-176de99377c4','http://10.10.10.41:8080/xsamanager/servicesb2b/CancelCFDIService/', '', '1', '0') 在SoapClient->\u调用('cancelaCFDI',array(array('serie'=>'NUVEM','folio'=>'7','rfc'=>'NHI120830831','key'=>'b6769894-fef7-4c1c-9d60-176de99377c4'))实际上是在controller.php第726行 在SoapClient->cancelaCFDI(数组('serie'=>'NUVEM','folio'=>'7','rfc'=>'NHI120830831','key'=>'b6769894-fef7-4c1c-9d60-176de99377c4')中的FacturasController.php第726行 我使用php的SoapClient