HTTP错误:cURL错误:35:在cakephp中连接nusoap时出现未知的SSL协议错误

时间:2014-12-08 16:26:29

标签: php cakephp curl nusoap

我尝试从soap webservice获取,其网址为https://something.com/webservice.asmx 我尝试将CURLOPT_SSLVERSION的值设置为3并且CURLOPT_SSL_VERIFYPEER =>是的,但没有用。

Php版本:5.5.12
Apache:2.4.9使用wamp server 2
我试图访问https://api.authorize.net/soap/v1/Service.asmx 我的代码适用于此Web服务,但不适用于其他Web服务 我的代码看起来像这样
$client = new nusoap_client($wsdl); $client->soap_defencoding = 'utf-8'; $mysoapmsg ='somexml'; $response = $client->send($mysoapmsg, $soapaction);

1 个答案:

答案 0 :(得分:0)

您需要提供有关其他网络服务的详细信息;这很模糊。正常的Web服务调用应如下所示:

$client = new SoapClient("http://domain.com/wservices.asmx?wsdl", array('login'          => "USERNAME",
                                                                        'password'       => "PASSWORD"));
$param = array("param_name" => $param_value);
$response = $client->__call("MethodName", array("parameters" => $param));
echo "<pre>";
print_r($response);
echo "</pre>";