Class: WsdlMapper::Runtime::Middlewares::SimpleResponseFactory
- Inherits:
-
Object
- Object
- WsdlMapper::Runtime::Middlewares::SimpleResponseFactory
- Defined in:
- lib/wsdl_mapper/runtime/middlewares/simple_response_factory.rb
Direct Known Subclasses
AsyncResponseFactory, WsdlMapperTesting::Middlewares::FakeResponseFactory
Instance Method Summary (collapse)
-
- (Array<WsdlMapper::Runtime::Operation, WsdlMapper::Runtime::Response>) call(operation, http_response)
Deserializes the
http_response
body.
Instance Method Details
- (Array<WsdlMapper::Runtime::Operation, WsdlMapper::Runtime::Response>) call(operation, http_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 |