Re: Method not defined error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux