Issues

ZF-4865: Exception thrown when using default Zend_Soap_Client with WSDL, not with PHP SoapClient

Issue Type: Bug Created: 2008-11-07T12:23:53.000+0000 Last Updated: 2010-07-06T01:34:49.000+0000 Status: Resolved Fix version(s): - 1.8.0 (30/Apr/09)

Reporter: Jacob Kiers (jacobkiers) Assignee: Alexander Veremyev (alexander) Tags: - Zend_Soap_Client

Related issues: Attachments:

Description

Zend_Soap_Client throws an exception when PHP SoapClient functions perfectly.

\_sessionId)) return $this->\_soapClient; {color:red} $this->\_soapClient = new Zend\_Soap\_Client("http://api.clickatell.com/soap/webservice.php?WSDL"); // >>1 $result = $this->\_soapClient->auth($this->\_apiId, $this->\_username, $this->\_password); // >>2 {color} $result = explode(' ', $result); if ($result[0] == 'OK:') { $this->\_sessionId = $result[1]; } else { throw new KiersIt\_Exception("Failed to authenticate. Please check your credentials!"); } return $this->\_soapClient; } /\* The 2nd indicated line (>>1) doesn't work: I get an exception (see below), however when I change the 1st indicated line (>>1) to: $this->\_soapClient = new SoapClient("http://api.clickatell.com/soap/webservice.php?WSDL"); it works perfectly. The Exception: Fatal error: Uncaught SoapFault exception: [SOAP-ENV:Client] Operation '' is not defined in the WSDL for this service in /home/jjkiers/src/bin/.Zend/ZendStudioForEclipse-6.1.0/plugins/org.zend.php.framework.resource\_6.1.0.v20080907/resources/ZendFramework\_1.6/Zend/Soap/Client.php:887 Stack trace: 0 [internal function]: SoapClient->\_\_call('auth', Array) ========================================================== 1 [internal function]: Zend\_Soap\_Client\_Common->auth(12345, 'username', 'password') ====================================================================================== 2 /home/jjkiers/src/bin/.Zend/ZendStudioForEclipse-6.1.0/plugins/org.zend.php.framework.resource\_6.1.0.v20080907/resources/ZendFramework\_1.6/Zend/Soap/Client.php(887): call\_user\_func\_array(Array, Array) =============================================================================================================================================================================================================== 3 [internal function]: Zend\_Soap\_Client->\_\_call('auth', Array) ================================================================== 4 /home/jjkiers/src/Zend/workspaces/DefaultWorkspace/Codelib/KiersIt/Sms/Adapter/Clickatell.php(143): Zend\_Soap\_Client->auth(12345, 'username', 'password') ============================================================================================================================================================= 5 /home/jjkiers/src/Zend/workspaces/DefaultWorkspace/Codelib/KiersIt/Sms/Adapter/Clickatell.php(163): KiersIt\_Sms\_Adapter\_Clickatell->\_getSoapClient() ========================================================================================================================================================== 6 /home/jjkiers/src/Zend/workspaces/DefaultWorkspace/Codelib/test.php(20): KiersIt\_Sms\_Adapter\_Clickatell->getCharge('2a41c19703b7dcd...') ============================================================================================================================================= 7 /tmp/dummy.php(1): include('/home/jjkiers/s...') ================================================== 8 {main} ======== thrown ### Comments Posted by Alexander Veremyev (alexander) on 2009-02-06T11:14:18.000+0000 Please check current trunk version. SoapClient->\_\_soapCall() method is used now instead of SoapClient->\_\_call() (which is deprecated). That was changed within [ZF-4381] fix and I hope it should work now. Posted by Alexander Veremyev (alexander) on 2009-03-16T08:34:07.000+0000 Fixed with ZF-4381 Please reopen issue if problem still exists. Posted by Matthieu (tamat) on 2009-04-03T07:02:55.000+0000 I have updated my Framework to 1.7.8 and patch it with the fix (new Zend/Soap/Client.php in ZF-4381) but the problem still exists ! In the mean time (until this issue is fix), I use SoapClient (which works perfectly) Posted by Jan Pieper (jpieper) on 2010-07-06T01:34:43.000+0000 Please take a look at ZF-9285 to find out what is causing this problem.

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts