我一直在努力解决这个问题,并最终投降寻求帮助.
所以这是我的问题:
我一直与那里的开发人员保持联系,但他们一直告诉我它工作正常,所以他们没有太大帮助……
我正在使用这段小代码来戳熊看看它是否还活着:
$WSDL = "http://ecolinthcm.pi-asp.de/logaserver/services/UsersService?wsdl";
// the file_get_contents methods doesn't change the end result unfortunately
//$data = file_get_contents($WSDL);
//file_put_contents('./wsdl.xml',$data);
//$WSDL = './wsdl.xml';
$opts = array(
'http'=>array(
'user_agent' => 'PHPSoapClient'
)
);
$context = stream_context_create($opts);
$service = new SoapClient($WSDL,array('stream_context' => $context, 'cache_wsdl' => WSDL_CACHE_NONE));
$result = $service->ErmUserBean (array("UserID","Password","TargetUserID"));
print '
';
var_dump($result);
print '
';正如标题中所述,我收到此消息作为回报:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn’t find < definitions > in ‘WSDL file URI’ in C:\Users\username\Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php:30 Stack trace: #0 C:\Users\username\Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php(30): SoapClient->SoapClient(‘WSDL file URI’, Array) #1 {main} thrown in C:\Users\username\Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php on line 30
我已经阅读了大多数有关此错误的帖子,因此在我的SOAP请求中尝试了很多变化.我还编辑了我的php.ini文件以便该行
extension=php_openssl.dll
没有“;” (评论)之前我可以阅读here.