Last active
December 11, 2015 23:48
-
-
Save jjaffeux/4678761 to your computer and use it in GitHub Desktop.
himedia soap service ruby example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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