A command line application to explore SOAP services
To see all the options and arguments you can throw at soap_client.phar
read
the help
:
soap_client.phar --help
This will output something like:
php-soap-client version 3.0.3
Usage:
[options] command [arguments]
Options:
--help -h Display this help message.
--quiet -q Do not output any message.
--verbose -v|vv|vvv Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--version -V Display this application version.
--ansi Force ANSI output.
--no-ansi Disable ANSI output.
--no-interaction -n Do not ask any interactive question.
--endpoint Specify the url to the wsdl of the SOAP webservice to inspect.
--proxy Use this proxy to connect to the SOAP web service. E.g: --proxy=my.proxy.com:8080
--cache Flag to enable caching of the wsdl. By default this is disabled.
Available commands:
call Call the remote service with the `method` specified and output the reponse to stdout.
help Displays help for a command
list Lists commands
list-methods Get a list of available methods to call on the remote.
request Generate an xml formatted SOAP request for the given method and output to stdout.
wsdl Get the WSDL of a soap service.
Easy method (no sudo):
Download the latest soap_client.phar
and start using it immediatly:
wget http://leaseweb.github.io/php-soap-client/soap_client.phar
chmod +x soap_client.phar
Difficult method (needs sudo):
To install soap_client
in /usr/bin
you can checkout the source code and build from there:
git clone https://github.com/leaseweb/php-soap-client.git
cd php-soap-client
make
sudo make install