Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/296.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP SOAP致命错误_Php_Soap - Fatal编程技术网

PHP SOAP致命错误

PHP SOAP致命错误,php,soap,Php,Soap,我正在尝试将货运系统集成到我的网站上。然后我在使用他们的网络服务 但我有一个这样的错误: “致命错误:未捕获的SoapFault异常:[WSDL]SOAP-error:分析WSDL:在中找不到” 错误提示:2秒。这行代码是: $client = new SoapClient("http://customerservices.araskargo.com.tr/ArasCargoCustomerIntegrationService/ArasCargoIntegrationService.svc");

我正在尝试将货运系统集成到我的网站上。然后我在使用他们的网络服务

但我有一个这样的错误: “致命错误:未捕获的SoapFault异常:[WSDL]SOAP-error:分析WSDL:在中找不到”

错误提示:2秒。这行代码是:

$client = new SoapClient("http://customerservices.araskargo.com.tr/ArasCargoCustomerIntegrationService/ArasCargoIntegrationService.svc");
这是我的全部代码:

<?php
$client = new SoapClient("http://customerservices.araskargo.com.tr/ArasCargoCustomerIntegrationService/ArasCargoIntegrationService.svc");
$queryInfo = "<QueryInfo>".
"<QueryType>2</QueryType>".
"<Date>07.10.2015</Date>".
"</QueryInfo>";
$loginInfo = "<LoginInfo>".
"<UserName>xxx</UserName>".
"<Password>xxx</Password>".
"<CustomerCode>xxx</CustomerCode>".
"</LoginInfo>";
$result = $client->GetQueryXML(array('loginInfo'=>$loginInfo,'queryInfo'=>$queryInfo));
echo $result;
$loginInfo,'queryInfo'=>$queryInfo));
回声$结果;

如何解决我的问题?

传递给SoapClient的url不是wsdl文件的url。您可能打算使用:

$client = new SoapClient("http://customerservices.araskargo.com.tr/ArasCargoCustomerIntegrationService/ArasCargoIntegrationService.svc?singleWsdl");