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

NAME

soapcli - SOAP client for CLI with YAML and JSON input

SYNOPSIS

soapcli [--verbose|-v] [--dump-xml-request|-x] data.yml|data.json|{string:"JSON"}|- [webservice.wsdl|webservice_wsdl.url] [[http://example.com/endpoint|endpoint.url][#port]] [operation]

soapcli [--help|-h]

Examples:

  $ soapcli -v calculator-correct.yml

  $ soapcli -v '{add:{x:2,y:2}}' http://soaptest.parasoft.com/calculator.wsdl

  $ soapcli -v globalweather.yml globalweather.url '#GlobalWeatherSoap'

  $ soapcli '{CityName:"Warszawa",CountryName:"Poland"}' \
  http://www.webservicex.com/globalweather.asmx?WSDL \
  '#GlobalWeatherSoap' GetWeather

DESCRIPTION

This is command-line SOAP client which accepts YAML or JSON document as an input data.

The first argument is a request data as a JSON string or a name of file which contains data in JSON or YAML format.

The second argument is an URL address to WSDL data or a filename of WSDL data file or a file which contains an URL address to WSDL data. This filename is optional and can be guessed from first argument.

The third argument is an URL address of endpoint with a name of a webservice port. The URL address of endpoint is optional if is already a part of WSDL data. The name of port is optional if it is unambiguous for called method. The name of port should start with # character.

The fourth argument is a name of method. It is optional if a name of method is already a part of request data.

SEE ALSO

http://github.com/dex4er/soapcli.

BUGS

This tool has unstable features and can change in future.

The tool is limited to webservices which support SOAP with document-literal style only.

AUTHOR

Piotr Roszatycki <dexter@cpan.org>

LICENSE

Copyright (c) 2011-2013 Piotr Roszatycki <dexter@cpan.org>.

This is free software; you can redistribute it and/or modify it under the same terms as perl itself.

See http://dev.perl.org/licenses/artistic.html