note 90428 added to soapclient.soapcall

From: Date: Wed, 22 Apr 2009 01:55:12 +0000
Subject: note 90428 added to soapclient.soapcall
Groups: php.notes 
Request: Send a blank email to php-notes+get-153563@lists.php.net to get a copy of this message
If you are calling a weblogic service with a certificate and you are getting this error on the soap method call statement: [EJB:010160]Security Violation: User: '<anonymous>' has insufficient permission to access EJB: type=<ejb>, application=app2_0_52_3, module=appsejb.jar, ejb=AppMethod, method=AppMethod, methodInterface=Remote, signature={java.lang.String}. then check the wsdl in the soap open call - it must be https. Supplied with an http wsdl this took some time to figure out. <?php $client = new SoapClient("https://server.domain.com.au/AppWs/Service?WSDL", array('trace'=>true, 'exceptions'=>true, 'local_cert' => "/var/www/html/app/newcert.pem", 'passphrase' => "thepassphrase")); $response = $client->__soapCall("MyMethod", array("param1" => $value1)); ?> Thanks to the authors for their comments on enabling openssl and curl by uncommenting extension=php_opensll.dll and extension=php_curl.dll in php.ini. Also for Olaf's instructions "append the content of the private key file and the certificate file to a single file". I did this using copy command on the DOS prompt: copy mycert.pem+mykey.pem newcert.pem ---- Server IP: 117.55.229.1 Probable Submitter: 203.100.251.69 ---- Manual Page -- http://www.php.net/manual/en/soapclient.soapcall.php Edit -- https://master.php.net/note/edit/90428 Del: integrated -- https://master.php.net/note/delete/90428/integrated Del: useless -- https://master.php.net/note/delete/90428/useless Del: bad code -- https://master.php.net/note/delete/90428/bad+code Del: spam -- https://master.php.net/note/delete/90428/spam Del: non-english -- https://master.php.net/note/delete/90428/non-english Del: in docs -- https://master.php.net/note/delete/90428/in+docs Del: other reasons-- https://master.php.net/note/delete/90428 Reject -- https://master.php.net/note/reject/90428 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#153563) next »