Created
March 12, 2020 10:14
-
-
Save henrik/c2bebd262fe564f883d54878a9e23c55 to your computer and use it in GitHub Desktop.
Using the Consignor Portal Data WS (web service) with Savon in Ruby.
This file contains 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
require "savon" | |
client = Savon.client( | |
pretty_print_xml: true, | |
log: true, | |
wsdl: "https://customer-api.consignorportal.com/PortalData/PortalData.svc?singleWsdl", | |
namespace_identifier: "edis", | |
) | |
#pp client.operations | |
response = client.call(:get_shipment_status, message: { | |
user_name: "foo@example.com", | |
password: "b4r", | |
shipment_number: "12345", | |
}) | |
puts "RESPONSE BODY:" | |
pp response.body |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment