Sha256: 21ecdfdef84fe24bceaa2bca20066b884a30d35d9e8710236904dcfcc9f5703f
Contents?: true
Size: 962 Bytes
Versions: 18
Compression:
Stored size: 962 Bytes
Contents
module Zanders class SoapClient < Base ## # == Item Service # # Return Codes # 0: Success # 1: Username and/or Password were incorrect # 2: There was a problem retrieving information on the item(s) protected def soap_client(api_url) namespaces = { "xmlns:env" => "http://www.w3.org/2003/05/soap-envelope", "xmlns:xsd" => "http://www.w3.org/2001/XMLSchema", "xmlns:xsl" => "http://www.w3.org/2001/XMLSchema-Instance", "xmlns:ns2" => "http://xml.apache.org/xml-soap", "xmlns:enc" => "http://www.w3.org/2003/05/soap-encoding" } @soap_client ||= Savon.client do wsdl(api_url) namespaces(namespaces) namespace_identifier(:ns1) strip_namespaces true ssl_verify_mode :none if Zanders.config.debug? log(true) log_level(:debug) pretty_print_xml(true) end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems