这是我的代码(尝试使用SAP webservice)
$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 :(得分:0)
我认为你应该使用"密码"而不是"传递"