Skip to content

Instantly share code, notes, and snippets.

@henrik
Created March 12, 2020 10:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save henrik/c2bebd262fe564f883d54878a9e23c55 to your computer and use it in GitHub Desktop.
Save henrik/c2bebd262fe564f883d54878a9e23c55 to your computer and use it in GitHub Desktop.
Using the Consignor Portal Data WS (web service) with Savon in Ruby.
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