Re: Method not defined error
| From: | Dan Van Derveer | Date: | Thu, 08 Jan 2004 23:26:26 +0000 |
| Subject: | Re: Method not defined error | ||
| References: | 1 | Groups: | php.soap |
| Request: | Send a blank email to php-soap+get-1300@lists.php.net to get a copy of this message | ||
Please, I know its a really simple question but it seems im not the only
one with an issue like this help me and Rudi Starcevic out. The newbies
need a little help to get on their feet.
Dan
On Tue, 06 Jan 2004 19:50:20
-0500, Dan Van Derveer wrote:
> I am working on a little sample soap service just to get myself up on php
> and soap before building a real product and I have constructed a wsdl file
> and written a corresponding(or so I think) php script to handle what I
> have defined in wsdl.
>
> I bound my server to the wsdl following an example I saw in some slides
> from phpcon. However I get the following error when I test out my server:
>
> pear_error pear_error :: method
>
> '{http://ww.cyberkni.net/links/testing.wsdl}hello_soap'
> not defined in
> service
>
> My code is this:
>
> <?php
> require_once('SOAP/Server.php');
>
> class SOAP_system {
> function hello_soap($message) {
> return "Hello you said: $message";
> }
> }
>
> $server = new Soap_Server('urn:SOAP_system');
> $handler = new SOAP_system();
>
> $server->bindWSDL("http://ww.cyberkni.net/links/testing.wsdl");
> $server->setClass('handler');
> $server->service($HTTP_RAW_POST_DATA);
> ?>
>
> Am I missing something?
>
> Thanks,
>
> Dan