SOAPSH(1p)

πŸ“¦
version 1.27 Β· 2 versions
  • 1.27 Β· debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking (latest)
  • 1.27 Β· ubuntu jammy
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– NAME πŸ’–

SOAPsh β€” the interactive shell for SOAP calls, bestie. Like, a whole little REPL for your SOAP era. ✨


🌸 SYNOPSIS 🌸

okay so here's the vibe, literally just run it:

perl SOAPsh http://services.soaplite.com/examples.cgi http://www.soaplite.com/My/Examples
> getStateName(2)
> getStateNames(1,2,3,7)
> getStateList([1,9])
> getStateStruct({a=>1, b=>24})
> Ctrl-D (Ctrl-Z on Windows)

or, plot twist, this serve:

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

and yes, you still exit with Ctrl-D (Ctrl-Z if you're on Windows, no shade 🫢)


✨ DESCRIPTION ✨

SOAPsh is a shell for making SOAP calls. it takes two parameters: a mandatory endpoint and an optional uri β€” and honestly? it will tell you about it if you try to run it wrong. it's not shy. additional commands can follow too, so you can just keep going.

after that you'll be able to run any methods of SOAP::Lite, like autotype, readable, encoding, etc. you run them the exact same way you do it in your Perl script. no new syntax, no gatekeeping, we love that. πŸ’…

and then you get the goods:

  • output from the method
  • the result of the SOAP call
  • detailed info on SOAP failure 😭
  • detailed info on transport error πŸ’€
for the full list of available methods, go see the documentation for SOAP::Lite. it's all in there, iykyk.

along with methods of SOAP::Lite, you'll be able β€” and lowkey this is the much more interesting part β€” to run any SOAP methods you know about on the remote server and see the processed results. main character behavior fr fr. πŸ‘‘

you can even switch on debugging, with a call something like this:

on_debug(sub{print@_})

and then you'll literally see the SOAP code, with headers sent and received. obsessed. πŸ¦‹


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


πŸ’œ AUTHOR πŸ’œ

Paul Kulchenko (paulclinger@yahoo.com)


k bye bestie, this page was brought to you by perl v5.36.0, dated 2023-03-01, and it's a SOAPSH(1p) situation β€” part of the User Contributed Perl Documentation. slay, stay hydrated, and don't forget your Ctrl-D. πŸŽ€βœ¨πŸ’–

πŸ“¦ where this page comes from