class WsdlMapper::Runtime::Operation
@abstract noinspection RubyUnusedLocalVariable
Attributes
Public Class Methods
@param [WsdlMapper::Runtime::Api] api @param [WsdlMapper::Runtime::Service] service @param [WsdlMapper::Runtime::Port] port
# 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
Public Instance Methods
@abstract @return [WsdlMapper::Runtime::InputD10r] The deserializer for this operations input message
# File lib/wsdl_mapper/runtime/operation.rb, line 69 def input_d10r load_requires end
@abstract @return [WsdlMapper::Runtime::InputS8r] The serializer for this operations input message
# File lib/wsdl_mapper/runtime/operation.rb, line 57 def input_s8r load_requires end
Dynamically loads the required classes (API types and serializers)
# 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
@return [WsdlMapper::SvcDesc::Envelope] @param [WsdlMapper::Runtime::Header] header @param [WsdlMapper::Runtime::Body] body
# File lib/wsdl_mapper/runtime/operation.rb, line 44 def new_envelope(header, body) WsdlMapper::SvcDesc::Envelope.new(header: header, body: body) end
@abstract @param [Hash<Symbol, Object>] header Keyword arguments for the corresponding input message header @param [Hash<Symbol, Object>] body Keyword arguments for the corresponding input message body
# File lib/wsdl_mapper/runtime/operation.rb, line 28 def new_input(header: {}, body: {}) load_requires nil end
@param [WsdlMapper::Runtime::Header] header @param [WsdlMapper::Runtime::Body] body @return [WsdlMapper::Runtime::Message]
# File lib/wsdl_mapper/runtime/operation.rb, line 51 def new_message(header, body) Message.new(@port._soap_address, @soap_action, new_envelope(header, body)) end
@abstract @param [Hash<Symbol, Object>] header Keyword arguments for the corresponding output message header @param [Hash<Symbol, Object>] body Keyword arguments for the corresponding output message body
# File lib/wsdl_mapper/runtime/operation.rb, line 36 def new_output(header: {}, body: {}) load_requires nil end
@abstract @return [WsdlMapper::Runtime::OutputD10r] The deserializer for this operations output message
# File lib/wsdl_mapper/runtime/operation.rb, line 75 def output_d10r load_requires end
@abstract @return [WsdlMapper::Runtime::OutputS8r] The serializer for this operations output message
# File lib/wsdl_mapper/runtime/operation.rb, line 63 def output_s8r load_requires end