Class: WsdlMapper::Runtime::Middlewares::SimpleResponseFactory

Inherits:
Object
  • Object
show all
Defined in:
lib/wsdl_mapper/runtime/middlewares/simple_response_factory.rb

Instance Method Summary collapse

Instance Method Details

#call(operation, http_response) ⇒ Array<WsdlMapper::Runtime::Operation, WsdlMapper::Runtime::Response>

Deserializes the http_response body. It relies on Operation#output_d10r to return the proper output deserializer for this operation.



12
13
14
15
16
17
# File 'lib/wsdl_mapper/runtime/middlewares/simple_response_factory.rb', line 12

def call(operation, http_response)
  response = WsdlMapper::Runtime::Response.new http_response.status, http_response.body, http_response.headers
  deserialize_envelope operation, response

  [operation, response]
end