Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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