Class: ChannelAdvisor::TaxServiceSOAP::TaxServiceSoap

Inherits:
SOAP::RPC::Driver
  • Object
show all
Defined in:
lib/channel_advisor/tax_service/client.rb

Constant Summary collapse

DefaultEndpointUrl =
"https://api.channeladvisor.com/ChannelAdvisorAPI/v4/TaxService.asmx"
Methods =
[
  [ "http://api.channeladvisor.com/webservices/GetTaxRateList",
    "getTaxRateList",
    [ [:in, "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "GetTaxRateList"]],
      [:out, "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "GetTaxRateListResponse"]] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal,
      :faults => {} }
  ],
  [ "http://api.channeladvisor.com/webservices/Ping",
    "ping",
    [ [:in, "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "Ping"]],
      [:out, "parameters", ["::SOAP::SOAPElement", "http://api.channeladvisor.com/webservices/", "PingResponse"]] ],
    { :request_style =>  :document, :request_use =>  :literal,
      :response_style => :document, :response_use => :literal,
      :faults => {} }
  ]
]

Instance Method Summary collapse

Constructor Details

#initialize(endpoint_url = nil) ⇒ TaxServiceSoap

Returns a new instance of TaxServiceSoap


30
31
32
33
34
35
36
# File 'lib/channel_advisor/tax_service/client.rb', line 30

def initialize(endpoint_url = nil)
  endpoint_url ||= DefaultEndpointUrl
  super(endpoint_url, nil)
  self.mapping_registry = ::ChannelAdvisor::TaxServiceSOAP::DefaultMappingRegistry::EncodedRegistry
  self.literal_mapping_registry = ::ChannelAdvisor::TaxServiceSOAP::DefaultMappingRegistry::LiteralRegistry
  init_methods
end