MyInterfaces::HelloWorld::HelloWorldSoap - SOAP Server Class for the HelloWorld Web Service
use MyServer::HelloWorld::HelloWorldSoap; my $server = MyServer::HelloWorld::HelloWorldSoap->new({ dispatch_to => 'My::Handler::Class', transport_class => 'SOAP::WSDL::Server::CGI', # optional, default }); $server->handle();
SOAP Server handler for the HelloWorld web service located at http://localhost:81/soap-wsdl-test/helloworld.pl.
Constructor.
The dispatch_to argument is mandatory. It must be a class or object implementing the SOAP Service methods listed below.
dispatch_to
Your dispatch_to class has to implement the following methods:
The examples below serve as copy-and-paste prototypes to use in your class.
sub sayHello( my ($self, $body, $header) = @_; # body is a ??? object - sorry, POD not implemented yet # header is a ??? object - sorry, POD not implemented yet # do something with body and header... return MyElements::sayHelloResponse->new( { sayHelloResult => $some_value, # string }, ); }
Generated by SOAP::WSDL on Sun Dec 2 01:20:36 2007
To install SOAP::WSDL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SOAP::WSDL
CPAN shell
perl -MCPAN -e shell install SOAP::WSDL
For more information on module installation, please visit the detailed CPAN module installation guide.