Sha256: 2c7c8ee005d76fd1ecdac4dc113531aebe7a3c1aade04de04ff6abe97ade424a
Contents?: true
Size: 953 Bytes
Versions: 9
Compression:
Stored size: 953 Bytes
Contents
module Zanders class SoapClient < Base 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" } ## # == 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) @soap_client ||= Savon.client do wsdl(api_url) namespaces(NAMESPACES) namespace_identifier(:ns1) strip_namespaces true ssl_verify_mode :none if Zanders.config.debug_mode? log(true) log_level(:debug) pretty_print_xml(true) end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems