basically the problem is in the examples I've seen on nusoap server, they are not in a Class. I'd like to put it into a class. How would I do this?
On Fri, Sep 12, 2008 at 1:44 AM, . <[EMAIL PROTECTED]> wrote: > This is the error i get: > > SOAP-ENV:Clientmethod '' not defined in service] > > On Fri, Sep 12, 2008 at 1:27 AM, . <[EMAIL PROTECTED]> wrote: > >> Hi >> >> I am trying to convert the Remote Service (helloworld-server.php) in the >> following tutorial (in the URL below) to cakephp Component-compatible. I am >> struggling with the correct syntax, however. In the server->register(..) >> method, the first parameter should be the name of the service function. In >> this case, the function is "hello". How would I call this "hello" function? >> >> Thanks for any help! >> >> >> >> *This is the tutorial: >> **http://www.oclipa.com/university/nusoap/3.php*<http://www.oclipa.com/university/nusoap/3.php> >> >> >> >> *This is what I have in my Cake NusoapComponent:* >> >> function serverMain() >> { >> $this->server= new nusoap_server(); >> *$this->server->register('hello',* // method name >> array('name' => 'xsd:string'), // input parameters >> array('return' => 'xsd:string'), // output parameters >> 'urn:hellowsdl', // namespace >> 'urn:hellowsdl#hello', // soapaction >> 'rpc', // style >> 'encoded', // use >> 'Says hello to the caller' // documentation >> ); >> $HTTP_RAW_POST_DATA = isset($HTTP_RAW_POST_DATA) ? $HTTP_RAW_POST_DATA : >> ''; >> $this->server->service($HTTP_RAW_POST_DATA); >> >> } >> >> // This is the method >> *function hello*($input) { >> $output_string = 'Hello ' . $input['firstname'] . >> '. You are ' . $input['age'] . ' years old.'; >> >> if ( $input['age'] >= 18 ) { $allow = 1; } >> >> $output = array( >> 'output_string' => $output_string, >> 'allow' => $allow >> ); >> >> return new soapval('return', 'HelloInfo', $output, false, 'urn:AnyURN'); >> } >> > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---