Zend Framework

Uncaught SoapFault exception: [SOAP-ENV:Client] Operation '' is not defined in the WSDL for this service

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.9.5
  • Fix Version/s: None
  • Component/s: Zend_Soap_Client
  • Labels:
    None

Description

This works :

$client = new soapClient(self::WSDL_LINK);
$this->return = $client->__call( 'getScores', array(self::CLIENT_KEY, Zend_Json::encode($this->chars)) );

This not :

$client = new Zend_Soap_Client(self::WSDL_LINK);
$this->return = $client->getScores( self::CLIENT_KEY, Zend_Json::encode($this->chars) );

Uncaught SoapFault exception: [SOAP-ENV:Client] Operation '' is not defined in the WSDL for this service in ...

Activity

Hide
Simon Pottier added a comment -

I ever try it It's the same issue. The matter is upstream. (sorry for my english)

Also, are you really sure that we must wrap params ?

thx a lot.

Show
Simon Pottier added a comment - I ever try it It's the same issue. The matter is upstream. (sorry for my english) Also, are you really sure that we must wrap params ? thx a lot.
Hide
Marco Kaiser added a comment -

can you give me the wsdl file and a possible soap backend to test?

Show
Marco Kaiser added a comment - can you give me the wsdl file and a possible soap backend to test?
Hide
Simon Pottier added a comment -

Please don't close it too fastly

Show
Simon Pottier added a comment - Please don't close it too fastly
Hide
Marco Kaiser added a comment -

Need more details. For example provide a sample wsdl and smallest possible parameters to reproduce this bug

Show
Marco Kaiser added a comment - Need more details. For example provide a sample wsdl and smallest possible parameters to reproduce this bug
Hide
Simon Pottier added a comment -

Hello,

look here for WSDL and interface : http://be.imba.hu/api/soap/0.1/

chars is an array

$this->chars = array();

$this->char['EU']['Culte de la Rive noire'] = 'Socute';
or
$this->char['EU']['Culte de la Rive noire'] = array('Socute', 'Raftel');

Thanks

Show
Simon Pottier added a comment - Hello, look here for WSDL and interface : http://be.imba.hu/api/soap/0.1/ chars is an array $this->chars = array(); $this->char['EU']['Culte de la Rive noire'] = 'Socute'; or $this->char['EU']['Culte de la Rive noire'] = array('Socute', 'Raftel'); Thanks
Hide
Marco Kaiser added a comment -

I get for both version the SOAP Env error message. If is switch back to SOAP_1_1 version it works
perfect for me.

$client = new Zend_Soap_Client('http://be.imba.hu/api/soap/0.1/index.php?wsdl', array('soap_version' => SOAP_1_1));

$result = $client->__call('getScores', array('ClientKey', 'JsonString'));
$result = $client->getScores('ClientKey', 'JsonString');

I looked into the code and the PHP internal SoapClient was just extendend and the calls are 100% identical.

Show
Marco Kaiser added a comment - I get for both version the SOAP Env error message. If is switch back to SOAP_1_1 version it works perfect for me.
$client = new Zend_Soap_Client('http://be.imba.hu/api/soap/0.1/index.php?wsdl', array('soap_version' => SOAP_1_1));

$result = $client->__call('getScores', array('ClientKey', 'JsonString'));
$result = $client->getScores('ClientKey', 'JsonString');
I looked into the code and the PHP internal SoapClient was just extendend and the calls are 100% identical.
Hide
Simon Pottier added a comment -

Great ! thanks a lot. There isn't information in the WSDL about soap version requirement. With soapClient, this is automatically detected. Maybe could you do the same with Zend_Soap_Client ?

another time, thanks for your help and sorry for my english.

Simon

Show
Simon Pottier added a comment - Great ! thanks a lot. There isn't information in the WSDL about soap version requirement. With soapClient, this is automatically detected. Maybe could you do the same with Zend_Soap_Client ? another time, thanks for your help and sorry for my english. Simon

People

Vote (0)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: