Page 1 of 1

PEAR SOAP: method "http://..." not defined in service

Posted: Fri Dec 11, 2009 7:37 am
by dejvos
Hi,

I'm trying to use a method 'importData' in a service via SOAP, but the server (PEAR/SOAP/Server.php) returns method "http://schemas.xmlsoap.org/soap/envelope/importData" not defined in service everytime.

I'm pretty sure that the method importData is defined properly:

Code: Select all

 
$this->__dispatch_map['importData'] = array('in' => array(
                                                        'data' => 'Array'
                                                    ),
                                                    'out' => array(
                                                        'result' => 'Array'
                                                    ));
 public function importData($data){
/* Some content is here. */
}
 
 
 
The namespace is correct too.

Any suggestion?

I will be glad of any answer. Thanks!

Re: PEAR SOAP: method "http://..." not defined in service

Posted: Fri Dec 11, 2009 8:04 am
by dejvos
Ok, I get it. A bad condition was on in the script which generates a SOAP message.

Time needed to correct condition: 2 seconds,
time needed to find where the error is: 10 hours + one dreamless night.

I realy love this job. :banghead: