require 'default.rb' require 'defaultMappingRegistry.rb' require 'soap/rpc/driver' class IPSUtilitiesSoap < ::SOAP::RPC::Driver DefaultEndpointUrl = "https://ws.g4si.com/IPSutilities.asmx" Methods = [ [ "http://tempuri.org/GenerateAccessKey", "generateAccessKey", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GenerateAccessKey"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GenerateAccessKeyResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetNewManifestNumber", "getNewManifestNumber", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetNewManifestNumber"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetNewManifestNumberResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetReferenceNumber", "getReferenceNumber", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetReferenceNumber"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetReferenceNumberResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetG4SIPickupLocationList", "getG4SIPickupLocationList", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SIPickupLocationList"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SIPickupLocationListResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetG4SICODCollectTypeList", "getG4SICODCollectTypeList", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SICODCollectTypeList"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SICODCollectTypeListResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetG4SICurrencies", "getG4SICurrencies", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SICurrencies"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetG4SICurrenciesResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/CompressedBytesToString", "compressedBytesToString", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "CompressedBytesToString"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "CompressedBytesToStringResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/StringToCompressedBytes", "stringToCompressedBytes", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "StringToCompressedBytes"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "StringToCompressedBytesResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/Login", "login", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "Login"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "LoginResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetAllCountries", "getAllCountries", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetAllCountries"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetAllCountriesResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetServiceLevelsByZip", "getServiceLevelsByZip", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetServiceLevelsByZip"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetServiceLevelsByZipResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetSrvcLvls", "getSrvcLvls", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetSrvcLvls"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetSrvcLvlsResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetSrvcLvlByShipersCountryAndZip", "getSrvcLvlByShipersCountryAndZip", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetSrvcLvlByShipersCountryAndZip"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetSrvcLvlByShipersCountryAndZipResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetCarriersList", "getCarriersList", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCarriersList"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCarriersListResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetPackageTypes", "getPackageTypes", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetPackageTypes"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetPackageTypesResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetStatesByCountry", "getStatesByCountry", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetStatesByCountry"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetStatesByCountryResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetDimensions", "getDimensions", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetDimensions"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetDimensionsResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetHarmonizedCodes_CountryFrom", "getHarmonizedCodes_CountryFrom", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetHarmonizedCodes_CountryFrom"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetHarmonizedCodes_CountryFromResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetHarmonizedCodes_CountryFrom_CountryTo", "getHarmonizedCodes_CountryFrom_CountryTo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetHarmonizedCodes_CountryFrom_CountryTo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetHarmonizedCodes_CountryFrom_CountryToResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetCommodityMeasurmentsPerCarrier", "getCommodityMeasurmentsPerCarrier", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCommodityMeasurmentsPerCarrier"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCommodityMeasurmentsPerCarrierResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetCarrierAcctInfo", "getCarrierAcctInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCarrierAcctInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetCarrierAcctInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ], [ "http://tempuri.org/GetUserInfo", "getUserInfo", [ ["in", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetUserInfo"]], ["out", "parameters", ["::SOAP::SOAPElement", "http://tempuri.org/", "GetUserInfoResponse"]] ], { :request_style => :document, :request_use => :literal, :response_style => :document, :response_use => :literal, :faults => {} } ] ] def initialize(endpoint_url = nil) endpoint_url ||= DefaultEndpointUrl super(endpoint_url, nil) self.mapping_registry = DefaultMappingRegistry::EncodedRegistry self.literal_mapping_registry = DefaultMappingRegistry::LiteralRegistry init_methods end private def init_methods Methods.each do |definitions| opt = definitions.last if opt[:request_style] == :document add_document_operation(*definitions) else add_rpc_operation(*definitions) qname = definitions[0] name = definitions[2] if qname.name != name and qname.name.capitalize == name.capitalize ::SOAP::Mapping.define_singleton_method(self, qname.name) do |*arg| __send__(name, *arg) end end end end end end