2014-04-01 57 views
0

这是我的代码(试图消耗SAP Web服务)PHP:SOAP未能加载外部实体

$options = array( 
      'exceptions'=>true, 
      'trace'=>1, 
      'encoding' => 'UTF-8', 
      "login" => $this->ws_username, 
      "pass" => $this->ws_password 
     ); 

$this->client = new SoapClient($uri,$options); 
print_r($this->soap_result); 

这是结果(地址是不是真实的,但在同一结构

Array 
(
    [message] =System error 
    [soap_exception] =SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://subdomain.sap.domain.com:50000/dir/wsdl?p=sa/Fca45c5131bb33eb0a4v5f1977ca80b92&WSDL' : failed to load external entity "http://subdomain.sap.domain.com:50000/dir/wsdl?p=sa/Fca45c5131bb33eb0a4v5f1977ca80b92&WSDL" 

)  

有关可能出错的想法吗?

回答

0

我认为你应该使用“密码”而不是“通过”

相关问题