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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

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

Post 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!
dejvos
Forum Contributor
Posts: 122
Joined: Tue Mar 10, 2009 8:40 am

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

Post 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:
Post Reply