SOAP-ERROR: Couldn't load WSDL-Collection of common programming errors
I’m trying to provide a Webservice (via PHP). Everything worked well on my local system with XAMPP. Now I’ve uploaded the WSDL and the server script to my webserver. But I can’t access either the WSDL or the script (via SSL).
My clientscript looks like this:
$client = new SoapClient('https://www.geldfuermuell.info/meineMediaWebservice/webservice.wsdl');
$user = array(
'steuernummer' => '',
'lk' => '',
'uid' => '',
'firma' => '',
'nname' => '',
'vname' => '',
'strasse' => '',
'hnr' => 'Hausnummer',
'plz' => '',
'ort' => '',
'land' => '',
'email' => '',
'telefon' => '',
'passwort' => '',
'pruefziffer' => '',
'inhaber' => '',
'konto' => '',
'blz' => '',
'institut' => '');
$request = new StdClass();
$request->user = new StdClass();
$request->user->steuernummer = $user['steuernummer'];
$request->user->lk = $user['lk'];
$request->user->uid = $user['uid'];
$request->user->firma = $user['firma'];
$request->user->nname = $user['nname'];
$request->user->vname = $user['vname'];
$request->user->strasse = $user['strasse'];
$request->user->hnr = $user['hnr'];
$request->user->plz = $user['plz'];
$request->user->ort = $user['ort'];
$request->user->land = $user['land'];
$request->user->email = $user['email'];
$request->user->telefon = $user['telefon'];
$request->user->passwort = $user['passwort'];
$request->user->pruefziffer = $user['pruefziffer'];
$request->user->inhaber = $user['inhaber'];
$request->user->konto = $user['konto'];
$request->user->blz = $user['blz'];
$request->user->institut = $user['institut'];
$result = $client->addUser($request);
I get the following error:
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://www.geldfuermuell.info/meineMediaWebservice/webservice.wsdl' : failed to load external entity "https://www.geldfuermuell.info/meineMediaWebservice/webservice.wsdl" in C:\xamppNew\htdocs\experimental\index.php:81 Stack trace: #0 C:\xamppNew\htdocs\experimental\index.php(81): SoapClient->SoapClient('https://www.gel...') #1 {main} thrown in C:\xamppNew\htdocs\experimental\index.php on line 81
(the line numbers are NOT correct)
I also tried to load the file via
file_get_contents('https://www.geldfuermuell.info:443/meineMediaWebservice/webservice.wsdl');
The result is:
Warning: file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages: error:14077458:SSL routines:SSL23_GET_SERVER_HELLO:reason(1112) in C:\xamppNew\htdocs\experimental\index.php on line 77
Warning: file_get_contents(): Failed to enable crypto in C:\xamppNew\htdocs\experimental\index.php on line 77
Warning: file_get_contents(https://www.geldfuermuell.info:443/meineMediaWebservice/webservice.wsdl): failed to open stream: operation failed in C:\xamppNew\htdocs\experimental\index.php on line 77
Does anybody have an idea? What’s my mistake?
BTW: OpenSSL is enabled SoapClient and SoapServer are enabled