Hallo, bin gerade am konfigurieren der SOAP Schnittstelle.
Habe folgenden Code :
Code
# Configuration parameters:
$user = 'benutzername';
$pass = 'pwpwpw';
$url = 'https://liveconfig.hoster4you.net:8443/liveconfig/soap';
# Construct WSDL URL
$wsdl_url = $url
.'?wsdl'
.'&l=' . urlencode($user)
.'&p=' . urlencode($pass);
# Create SOAP client
$client = new SoapClient($wsdl_url,
array('style' => SOAP_DOCUMENT,
'use' => SOAP_LITERAL,
)
);
# Construct SOAP token:
$ts = gmdate("Y-m-d") . "T" . gmdate("H:i:s") . ".000Z";
$token = base64_encode(hash_hmac('sha1',
'LiveConfig' . $user . 'TestSayHello' . $ts,
$pass,
true
)
);
$auth = array('login' => $user,
'timestamp' => $ts,
'token' => $token);
$params = array('auth' => $auth,
'firstname' => 'John',
'lastname' => 'Doe');
try {
$response = $client->TestSayHello($params);
} catch (SoapFault $soapFault) {
die("Error while calling Web Service: " . $soapFault->faultstring . "\n");
}
echo "Response: " . $response->greeting . "\n";
?>
Alles anzeigen
Nun gibt er leider immer nur einen Error aus. Zu sehen ist es zb hier
http://entwicklung.hoster4you.net/test.php
"Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't bind to service in /var/hoster4you_entwicklung/test.php:22 Stack trace: #0 /var/hoster4you_entwicklung/test.php(22): SoapClient->SoapClient('https://livecon...', Array) #1 {main} thrown in /var/hoster4you_entwicklung/test.php on line 22 "
Vielleicht könnt ihr mir ja helfen