Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/r-icarus/detergentex
Elixir binding to Detergent erlang library used to call WSDL/SOAP Services
https://github.com/r-icarus/detergentex
Last synced: about 1 month ago
JSON representation
Elixir binding to Detergent erlang library used to call WSDL/SOAP Services
- Host: GitHub
- URL: https://github.com/r-icarus/detergentex
- Owner: r-icarus
- Created: 2015-03-26T19:25:44.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-06-06T21:15:57.000Z (over 6 years ago)
- Last Synced: 2024-10-06T20:15:51.508Z (2 months ago)
- Language: Elixir
- Homepage:
- Size: 15.6 KB
- Stars: 64
- Watchers: 4
- Forks: 22
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- freaking_awesome_elixir - Elixir - Elixir binding to Detergent erlang library used to call WSDL/SOAP Services. (REST and API)
- fucking-awesome-elixir - detergentex - Elixir binding to Detergent erlang library used to call WSDL/SOAP Services. (REST and API)
- awesome-elixir - detergentex - Elixir binding to Detergent erlang library used to call WSDL/SOAP Services. (REST and API)
README
Detergentex
===========An Elixir client for SOAP Services using the erlang detergent library.
## Usage
1) Add detergentex and its erlang dependencies to your deps:```elixir
{:erlsom, github: "willemdj/erlsom"},
{:detergentex, "0.0.5"}
```2) Add `:detergentex` to the list of application dependencies in your `mix.exs`.
```elixir
def application do
[applications: [:logger, :detergentex]]
end
```3) Call web services using `Detergentex.call(wsdl, method, parameters)`:
```elixir
wsdl_url = "http://www.webservicex.net/convertVolume.asmx?WSDL"
action = "ChangeVolumeUnit"
parameters = ["100","dry","centiliter"]Detergentex.call(wsdl_url, action, parameters)
# Cache the wsdl to do recurrent calls quickly
wsdl = Detergentex.init_model(wsdl_url)Detergentex.call(wsdl, action, parameters)
Detergentex.call(wsdl, action, parameters)
Detergentex.call(wsdl, action, parameters)
```## License
MIT