Skip to content

Instantly share code, notes, and snippets.

@jjaffeux
Last active December 11, 2015 23:48
Show Gist options
  • Save jjaffeux/4678761 to your computer and use it in GitHub Desktop.
Save jjaffeux/4678761 to your computer and use it in GitHub Desktop.
himedia soap service ruby example
# gem install savon
require 'savon'
login = ''
password = ''
cloud = ''
destination = ''
client = Savon.client do
wsdl "http://vocalgateway.mediakiosque.com/ws/wsdl/HiconnectCloud.wsdl"
basic_auth [login, password]
end
begin
response = client.call(:reserver_numero,
message: {
cloud: cloud,
destination: destination,
customer: '',
site: ''
}
)
p response.body
rescue Savon::SOAPFault => error
p error.message
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment