soap client i php
Jeg skal bruge en webservice og får følgende fejl:The Server returned error: HTTP Error: cURL ERROR: 60: SSL
certificate problem, verify that the CA cert is OK
url: https://demewswlbs-wm.kmd.dk/KMD.JB.STB.WebService.BEC/bec.asmx.WSDL
http_code: 0
header_size: 0
request_size: 0
filetime: -1
ssl_verify_result: 0
redirect_count: 0
total_time: 0
namelookup_time: 0
connect_time: 0.016
pretransfer_time: 0
size_upload: 0
size_download: 0
speed_download: 0
speed_upload: 0
download_content_length: 0
upload_content_length: 0
starttransfer_time: 0
redirect_time: 0
Det da ser ud til at den kan finde adressen.
Min kode er følgende:
require_once('nusoap/nusoap.php');
$client = new soapclient("https://demewswlbs-wm.kmd.dk/KMD.JB.STB.WebService.BEC/bec.asmx.WSDL");
curl_setOpt($client,CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setOpt($client,CURLOPT_SSL_VERIFYPEER,FALSE);
$response = $client->call('BECtilBOSSINF',$par1);
if ($err = $client->getError()) { // if error returned then this has a value
echo "The Server returned error: ", $err; // echo the error faultstring
}
else {
echo "Greeting returned: ", $response;
}
Skal jeg have et certifikat liggende på apache serveren hvor php scriptet kører fra?
Venlig hilsen En trodsalt håbefuld soap begynder.