我正在使用带有PHP的NuSOAP库。我该如何开始使用SSL?
我可以简单地替换' http'使用' https',或者我是否需要为NuSOAP生成密钥?
服务器代码:
$server = new soap_server();
$server->register("GetMaxFileUpload",
array('sLanguage' => 'tns:string'),
array('return' => 'tns:getmaxfileupload'),
'urn:datalist', 'urn:datalist#GetMaxFileUpload');
$server->service(file_get_contents("php://input"));
客户代码:
$client = new nusoap_client($GLOBALS['gsSOAPserver'].'webservice/uploadmaxfilesize.php');
$sUploadlimit= $client->call('GetMaxFileUpload', array('sLanguage'=>$GLOBALS['gsLanguage']));