Skip to content

Elixir binding to Detergent erlang library used to call WSDL/SOAP Services

Notifications You must be signed in to change notification settings

r-icarus/detergentex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Detergentex

An Elixir client for SOAP Services using the erlang detergent library.

Usage

  1. Add detergentex and its erlang dependencies to your deps:
{:erlsom, github: "willemdj/erlsom"},
{:detergentex, "0.0.5"}
  1. Add :detergentex to the list of application dependencies in your mix.exs.
  def application do
    [applications: [:logger, :detergentex]]
  end
  1. Call web services using Detergentex.call(wsdl, method, parameters):
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

About

Elixir binding to Detergent erlang library used to call WSDL/SOAP Services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages