I am trying to use the SOAP web service from a remote server, the wsdl file is here http://ecolinthcm.pi-asp.de/logaserver/services/UsersService?wsdl
I talked with the developers, but they constantly tell me that everything works fine, so they do not really help ...
I use this little piece of code to poke a bear to see if it is alive:
$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 '<pre>';
var_dump($result);
print '</pre>';
As the title says, I get this message in return:
: SoapFault: [WSDL] SOAP-ERROR: WSDL: <> 'URI WSDL' C:\Users\ \Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php: 30 : # 0 C:\Users\ \Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php(30): SoapClient-> SoapClient ('URI WSDL', Array) # 1 {main}, C:\Users\ \Documents\EasyPHP-DevServer-14.1VC11\data\localweb\projects\API\index.php 30
SOAP. php.ini,
= php_openssl.dll
";" () .