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