class WsdlMapper::Runtime::Middlewares::SimpleResponseFactory
Public Instance Methods
call(operation, http_response)
click to toggle source
Deserializes the `http_response` body. It relies on {WsdlMapper::Runtime::Operation#output_d10r} to return the proper output deserializer for this operation. @param [WsdlMapper::Runtime::Operation] operation @param [Faraday::Response] http_response @return [Array<WsdlMapper::Runtime::Operation, WsdlMapper::Runtime::Response>]
# 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
Protected Instance Methods
deserialize_envelope(operation, response)
click to toggle source
# File lib/wsdl_mapper/runtime/middlewares/simple_response_factory.rb, line 20 def deserialize_envelope(operation, response) response.envelope = operation.output_d10r.from_xml response.body end