Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dex4er/soapcli
SOAP client for CLI with YAML and JSON input
https://github.com/dex4er/soapcli
Last synced: 10 days ago
JSON representation
SOAP client for CLI with YAML and JSON input
- Host: GitHub
- URL: https://github.com/dex4er/soapcli
- Owner: dex4er
- Created: 2011-11-17T18:47:14.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2015-05-15T16:57:13.000Z (over 9 years ago)
- Last Synced: 2024-10-28T09:01:33.268Z (about 2 months ago)
- Language: Perl
- Homepage:
- Size: 398 KB
- Stars: 0
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
soapcli - SOAP client for CLI with YAML and JSON input and output
SYNOPSIS
soapcli [--verbose|-v] [--dump-xml-request|-x] [--json|-j] [--yaml|-y]
data.yml|data.json|{string:"JSON"}|-
[webservice.wsdl|webservice_wsdl.url]
[[http://example.com/endpoint|endpoint.url][#port]] [operation]soapcli [--help|-h]
Examples:
$ soapcli calculator-correct.json
$ soapcli -y '{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' GetWeatherDESCRIPTION
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.The result will be dumped as JSON (by default) or YAML.
INSTALLATION
Debian/Ubuntu
$ sudo apt-get install cpanminus build-essential libxml2-dev zlib1g-dev
$ sudo apt-get install libyaml-syck-perl libyaml-libyaml-perl \
libjson-pp-perl libhtml-tiny-perl libgetopt-long-descriptive-perl \
libperl6-slurp-perl libxml-libxml-simple-perl libtest-tester-perl \
libtest-nowarnings-perl libtest-deep-perl
$ sudo cpanm App::soapcliSEE 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
LICENSE
Copyright (c) 2011-2015 Piotr Roszatycki .
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