The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

SOAPsh.pl - Interactive shell for SOAP calls

SYNOPSIS

  perl SOAPsh.pl http://superhonker.userland.com/ /examples 
  > on_action(sub{sprintf '"%s"',@_}) # you'll need it only for Userland's server
  > getStateName(2)
  > getStateNames(1,2,3,7)
  > getStateList([1,9])
  > getStateStruct({a=>1, b=>24})
  > Ctrl-Z/Ctrl-D

or

  # all parameters after uri will be executed as methods
  perl SOAPsh.pl http://www.razorsoft.net/ssss4c/soap.asp http://simon.fell.com/calc doubler([10,20,30])
  > Ctrl-Z/Ctrl-D

DESCRIPTION

SOAPsh.pl is a shell for making SOAP calls. It takes two parameters: mandatory endpoint and optional uri (actually it'll tell you about it if you try to run it). Additional commands can follow.

After that you'll be able to run any methods of SOAP::Lite, like autotype, readable, encoding etc. You can run it the same way as you do it in your Perl script. You'll see output from method, result of SOAP call, detailed info on SOAP faulure or transport error.

For full list of available methods see documentation for SOAP::Lite.

NB: use on_action(sub{sprintf '"%s"',@_}) before making requests for userland's public server, because they don't like method name in action for some reasons, so this call will drop method name from action.

Along with methods of SOAP::Lite you'll be able (and that's much more interesting) run any SOAP methods you know about on remote server and see processed results. You can even switch on debugging (with call something like: 'on_debug(sub{warn@_})') and see SOAP code with headers sent and recieved.

COPYRIGHT

Copyright (C) 2000 Paul Kulchenko. All rights reserved.

AUTHOR

Paul Kulchenko (paulclinger@yahoo.com)