lib/savon_helper/soap_interface.rb
# Helper Method deserializing the SOAP response into an array of objects.
# @param method_name [Symbol] The SOAP method to call.
# @param object_class [MappingObject] The element class to typecast the result elements to.
# @param collection_name [Symbol] The name of the reply parameter.
# @param arguments [Hash] The method arguments
# @return [Array<object_class>] The object filled from the response.
Helper Method deserializing the SOAP response into an array of objects.
Helper Method deserializing the SOAP response into an array of objects .
def request_array(method_name, object_class, collection_name = nil, arguments={})
      data = send_soap(method_name, arguments)
      data = data[collection_name] unless collection_name.blank?
      ArrayMapping.to_native(ObjectMapping.new(object_class), data, self)
    end
def request_array ( method_name , object_class , collection_name = nil , arguments = { } ) data = send_soap ( method_name , arguments ) data = data [ collection_name ] unless collection_name . blank? ArrayMapping . to_native ( ObjectMapping . new ( object_class ) , data , self ) end
Helper Method deserializing the SOAP response into an array of objects.
Helper Method deserializing the SOAP response into an array of objects .
# SavonHelper::ArrayMapping.new(SavonHelper::ObjectMapping.new(object_class)).from_savon_data(data)
The object filled from the response.
The object filled from the response .
Array<object_class>
method_name
The SOAP method to call.
The SOAP method to call .
object_class
The element class to typecast the result elements to.
The element class to typecast the result elements to .
collection_name
The name of the reply parameter.
The name of the reply parameter .
arguments
The method arguments
The method arguments