2014-04-01 55 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

我認爲你應該使用「密碼」而不是「通過」

相關問題