Once we figure out a way to generate reliable WSDLs
from SOAP::Lite code, then it would be nice to support
a mechanism like other toolkits to return a WSDL in a
GET request a la:
http:://axisservice.com/service/Foo?WSDL
http://dotnetservice.com/foo.asmx?WSDL
Furthermore, it would be awesome to auto-generate an
HTML form to collect input as .NET does and Axis soon
will.
Logged In: YES
user_id=805085
There is a quick fix for this. In package
SOAP::Transport::HTTP::Daemon, modify the
subroutine 'handle'.
Replace the following 3 lines
$self->request($r);
$self->SUPER::handle;
$c->send_response($self->response);
with this if-else clause
if ($r->method eq 'GET') {
my $wsdl_file = $r->url->epath;
$wsdl_file =~ s/^\///;
$c->send_file_response($wsdl_file);
} else {
$self->request($r);
$self->SUPER::handle;
$c->send_response($self->response);
}
See message 2662 in the soaplite Yahoo Group
J. Peyser
Logged In: YES
user_id=884175
Originator: NO
Auto-generating WSDL is impossible due to perls dynamic type system.
The get stuff is actually out of scope for a toolkit, though it really would be nice - as well as the automatic example pages (which can be generated from the WSDL via XSLT).
I'll file it as feature request, but with a low priority...