class WsdlMapper::Runtime::Middlewares::SimpleMessageFactory

Public Instance Methods

call(operation, body, *args) click to toggle source

Creates a new {WsdlMapper::Runtime::Message} with the given input `body`. It relies on {WsdlMapper::Runtime::Operation#new_input} to create the message. @param [WsdlMapper::Runtime::Operation] operation @param [Hash] body Arguments for the operations input body constructor @param [Array] args @return [Array<WsdlMapper::Runtime::Operation, WsdlMapper::Runtime::Message>]

# File lib/wsdl_mapper/runtime/middlewares/simple_message_factory.rb, line 11
def call(operation, body, *args)
  message = operation.new_input body: body

  [operation, message]
end