Class: WsdlMapper::Runtime::Operation Abstract
- Inherits:
-
Object
- Object
- WsdlMapper::Runtime::Operation
- Defined in:
- lib/wsdl_mapper/runtime/operation.rb
Overview
noinspection RubyUnusedLocalVariable
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#operation_name ⇒ Object
readonly
Returns the value of attribute operation_name.
Instance Method Summary collapse
-
#initialize(api, service, port) ⇒ Operation
constructor
A new instance of Operation.
-
#input_d10r ⇒ WsdlMapper::Runtime::InputD10r
abstract
The deserializer for this operations input message.
-
#input_s8r ⇒ WsdlMapper::Runtime::InputS8r
abstract
The serializer for this operations input message.
-
#load_requires ⇒ Object
Dynamically loads the required classes (API types and serializers).
- #new_envelope(header, body) ⇒ WsdlMapper::SvcDesc::Envelope
- #new_input(header: {}, body: {}) ⇒ Object abstract
- #new_message(header, body) ⇒ WsdlMapper::Runtime::Message
- #new_output(header: {}, body: {}) ⇒ Object abstract
-
#output_d10r ⇒ WsdlMapper::Runtime::OutputD10r
abstract
The deserializer for this operations output message.
-
#output_s8r ⇒ WsdlMapper::Runtime::OutputS8r
abstract
The serializer for this operations output message.
Constructor Details
#initialize(api, service, port) ⇒ Operation
Returns a new instance of Operation.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 14 def initialize(api, service, port) @api = api @service = service @port = port @soap_action = nil @name = nil @operation_name = nil @requires = [] @loaded = false end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
9 10 11 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 9 def name @name end |
#operation_name ⇒ Object (readonly)
Returns the value of attribute operation_name.
9 10 11 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 9 def operation_name @operation_name end |
Instance Method Details
#input_d10r ⇒ WsdlMapper::Runtime::InputD10r
Returns The deserializer for this operations input message.
69 70 71 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 69 def input_d10r load_requires end |
#input_s8r ⇒ WsdlMapper::Runtime::InputS8r
Returns The serializer for this operations input message.
57 58 59 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 57 def input_s8r load_requires end |
#load_requires ⇒ Object
Dynamically loads the required classes (API types and serializers)
80 81 82 83 84 85 86 87 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 80 def load_requires return if @loaded @requires.each do |req| require req end @loaded = true end |
#new_envelope(header, body) ⇒ WsdlMapper::SvcDesc::Envelope
44 45 46 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 44 def new_envelope(header, body) WsdlMapper::SvcDesc::Envelope.new(header: header, body: body) end |
#new_input(header: {}, body: {}) ⇒ Object
28 29 30 31 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 28 def new_input(header: {}, body: {}) load_requires nil end |
#new_message(header, body) ⇒ WsdlMapper::Runtime::Message
51 52 53 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 51 def (header, body) Message.new(@port._soap_address, @soap_action, new_envelope(header, body)) end |
#new_output(header: {}, body: {}) ⇒ Object
36 37 38 39 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 36 def new_output(header: {}, body: {}) load_requires nil end |
#output_d10r ⇒ WsdlMapper::Runtime::OutputD10r
Returns The deserializer for this operations output message.
75 76 77 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 75 def output_d10r load_requires end |
#output_s8r ⇒ WsdlMapper::Runtime::OutputS8r
Returns The serializer for this operations output message.
63 64 65 |
# File 'lib/wsdl_mapper/runtime/operation.rb', line 63 def output_s8r load_requires end |