Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#6 Return WSDL in a GET request

open
nobody
None
2
2007-10-03
2003-05-22
Byrne Reese
No

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.

Discussion

  • 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

     
  • Martin Kutter
    Martin Kutter
    2007-10-03

    • priority: 5 --> 2
     
  • Martin Kutter
    Martin Kutter
    2007-10-03

    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...

     
  • Martin Kutter
    Martin Kutter
    2007-10-03

    • labels: 477235 -->
    • milestone: 304765 -->