anonīms Posted October 10, 2012 Report Share Posted October 10, 2012 (edited) Pašlaik ir soapClient pieprasījums, kas neiet, jo varētu būt, ka netiek cauri sertifikāta pārbaudei (rāda, ka sertifikāts nav drošs, bet tālāk var tikt). jautājums ir kā uzlikt, lai soapclients ignorētu šo sertifikāta pārbaudi? Centos kaut kā šādi, bet neiet $context = stream_context_create(array( 'ssl' => array('verify_peer' => 'false') )); $soapURL = "https://***dis?wsdl"; $loginData = Array('username' => '***', 'password' => '***') ; $soapClient = new SoapClient($soapURL, array('encoding'=>'UTF-8','stream_context'=>$context)); EDIT: ar 'https' => array( 'curl_verify_ssl_peer' => false, 'curl_verify_ssl_host' => false ), arī mēģināts. Edited October 10, 2012 by anonīms Quote Link to comment Share on other sites More sharing options...
ezis Posted October 10, 2012 Report Share Posted October 10, 2012 (edited) $client = new SoapClient(null, array( 'location' => 'https://***dis', 'uri' => 'send some uri?', 'encoding' =>'UTF-8', 'stream_context' => stream_context_create(array( 'ssl' => array('verify_peer' => 'false') )) ); Neesmu drošs, bet iespējams, ka varētu būt uz to pusi, ko meklē. Tikai testēšanas nolūkiem? Edited October 10, 2012 by ezis Quote Link to comment Share on other sites More sharing options...
anonīms Posted October 10, 2012 Author Report Share Posted October 10, 2012 ezis. Varētu tā teikt. Ok. pamēģināšu. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.