Class: Stockboy::Providers::SOAP
- Inherits:
-
Stockboy::Provider
- Object
- Stockboy::Provider
- Stockboy::Providers::SOAP
- Defined in:
- lib/stockboy/providers/soap.rb
Overview
Fetch data from a SOAP endpoint
Backed by Savon gem, see savon for full configuration options: extra options are passed through.
Options collapse
-
#endpoint ⇒ Object
Optional if specified in WSDL.
-
#headers ⇒ Hash
Hash of optional HTTP request headers.
-
#message ⇒ Hash
Hash of message options passed in the request, often includes credentials and query options.
-
#message_tag ⇒ String
Message tag name.
-
#namespace ⇒ Object
Optional if specified in WSDL.
-
#namespace_id ⇒ Object
Optional if specified in WSDL.
-
#namespaces ⇒ Object
Optional if specified in WSDL.
-
#request ⇒ String
The name of the request, see your SOAP documentation.
-
#response_format ⇒ Symbol
Change the default response type, default :hash.
-
#soap_header ⇒ String
XML string to override the Soap headers.
-
#wsdl ⇒ String
URL with the WSDL document.
-
#wsse_auth ⇒ Array
Array of WSSE Auth values.
Attributes inherited from Stockboy::Provider
#data, #data_size, #data_time, #errors, #logger
Options collapse
Instance Method Summary collapse
-
#client {|@client| ... } ⇒ Savon::Client
Connection object to the configured SOAP endpoint.
-
#initialize(opts = {}, &block) ⇒ SOAP
constructor
Initialize a new SOAP provider.
Methods inherited from Stockboy::Provider
#clear, #data?, #inspect, #reload, #valid?
Constructor Details
Instance Attribute Details
#endpoint ⇒ Object
Optional if specified in WSDL
65 |
# File 'lib/stockboy/providers/soap.rb', line 65 dsl_attr :endpoint |
#headers ⇒ Hash
Hash of optional HTTP request headers
123 |
# File 'lib/stockboy/providers/soap.rb', line 123 dsl_attr :headers |
#message ⇒ Hash
Hash of message options passed in the request, often includes credentials and query options.
75 |
# File 'lib/stockboy/providers/soap.rb', line 75 dsl_attr :message |
#message_tag ⇒ String
Message tag name
84 |
# File 'lib/stockboy/providers/soap.rb', line 84 dsl_attr :message_tag |
#namespace ⇒ Object
Optional if specified in WSDL
47 |
# File 'lib/stockboy/providers/soap.rb', line 47 dsl_attr :namespace |
#namespace_id ⇒ Object
Optional if specified in WSDL
59 |
# File 'lib/stockboy/providers/soap.rb', line 59 dsl_attr :namespace_id |
#namespaces ⇒ Object
Optional if specified in WSDL
53 |
# File 'lib/stockboy/providers/soap.rb', line 53 dsl_attr :namespaces |
#request ⇒ String
The name of the request, see your SOAP documentation
35 |
# File 'lib/stockboy/providers/soap.rb', line 35 dsl_attr :request |
#response_format ⇒ Symbol
Change the default response type, default :hash
114 |
# File 'lib/stockboy/providers/soap.rb', line 114 dsl_attr :response_format |
#soap_header ⇒ String
XML string to override the Soap headers
99 |
# File 'lib/stockboy/providers/soap.rb', line 99 dsl_attr :soap_header |
#wsdl ⇒ String
URL with the WSDL document
26 |
# File 'lib/stockboy/providers/soap.rb', line 26 dsl_attr :wsdl |
#wsse_auth ⇒ Array
Array of WSSE Auth values
132 |
# File 'lib/stockboy/providers/soap.rb', line 132 dsl_attr :wsse_auth |
Instance Method Details
#attributes ⇒ Hash
105 |
# File 'lib/stockboy/providers/soap.rb', line 105 dsl_attr :attributes |
#client {|@client| ... } ⇒ Savon::Client
Connection object to the configured SOAP endpoint
148 149 150 151 152 |
# File 'lib/stockboy/providers/soap.rb', line 148 def client @client ||= Savon.client() yield @client if block_given? @client end |
#env_namespace ⇒ Symbol
41 |
# File 'lib/stockboy/providers/soap.rb', line 41 dsl_attr :env_namespace |
#soap_action ⇒ String
90 |
# File 'lib/stockboy/providers/soap.rb', line 90 dsl_attr :soap_action |