Max_Kooler has asked for the wisdom of the Perl Monks concerning the following question:
To call the webservice I point to http://192.168.11.73/cgi-bin/webservice/webservice.cgi.WebserviceFunctions.pm package WebserviceFunctions; =begin WSDL _DOC Hello return a String saying hello _IN name $string the name of the user to salute _RETURN $string Returns a string Hello, name =end WSDL sub Hello { my $name = shift; my $return = "Hello, $name"; return $return; } =begin WSDL _DOC Goodbye return a String saying goodbye _IN name $string the name of the user to dismiss _RETURN $string Returns a string Goodbye, name =end WSDL sub Goodbye { my $name = shift; my $return = "Goodbye, $name"; return $return; } 1; webservice.cgi #!/usr/bin/perl -w use Pod::WSDL; use CGI; use strict; use warnings; print CGI->header('text/xml'); my $pod = new Pod::WSDL(source=> './WebserviceFunctions.pm', location=>'http://192.168.11.73/cgi-bin/webser +vice', pretty=>1, withDocumentation=>1); $pod->addNamespace('http://192.168.11.73/cgi-bin/webservice/','Webserv +iceFunctions'); print $pod->WSDL;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Using Pod::WSDL and getting error 301 when calling any method
by InfiniteSilence (Curate) on May 03, 2013 at 21:40 UTC | |
by Anonymous Monk on May 03, 2013 at 21:49 UTC | |
|
Re: Using Pod::WSDL and getting error 301 when calling any method
by Anonymous Monk on May 03, 2013 at 19:26 UTC | |
by Max_Kooler (Initiate) on May 03, 2013 at 19:32 UTC | |
by Anonymous Monk on May 03, 2013 at 21:12 UTC | |
by Anonymous Monk on May 03, 2013 at 21:50 UTC |