in reply to Re: The sad state of SOAP and Perl
in thread The sad state of SOAP and Perl

I thought that you are generally expected to write your WSDL by hand, that the generators don't work.
I thought so too, which seemed really odd since .NET has the WebMethod attribute which sets up some automagickal WSDL/webservice thing that does what you need to expose your code as a webservice.
Example: Creating web services with .Net and Visual Studio

Example:
[WebMethod] public string greet( string name ) { return "Hello, " + name; }
The POD sections that Pod::WSDL looks for are pretty much along the same lines.
=begin WSDL _IN name $string _RETURN $string =cut sub greet { my ($s, $name) = @_; return "Hello, $name!"; }
I typed cpan SOAP::Lite and it just worked.
If you're using Apache 1.3x that works just fine.

Replies are listed 'Best First'.
Re^3: The sad state of SOAP and Perl
by Anonymous Monk on Apr 13, 2006 at 00:26 UTC

    Java does that too. With the latest Java, you can easily expose your web service through simple annotation like @WebService, @WebMethod.

    Perl's support of WSDL is really poor.

      Thanks for the tip on Java -

      I assume reflection is used to figure out what parts to document in the WSDL (names, arguments, return values, etc).