lib/soaspec/basic_soap_handler.rb in soaspec-0.0.7 vs lib/soaspec/basic_soap_handler.rb in soaspec-0.0.8
- old
+ new
@@ -81,11 +81,11 @@
test_values = test_values.transform_keys_to_symbols # Either string or symbol
request_body = File.read('template/' + template_name + '.xml')
render_body = ERB.new(request_body).result(binding)
@client.call(default_operation, xml: render_body ) # Call the SOAP operation with the request XML provided
elsif @request_option == :hash
- @client.call(default_operation, message: @default_hash.merge(test_values))
+ @client.call(default_operation, message: @default_hash.merge(test_values), attributes: root_attributes)
end
end
def to_s
Soaspec::Environment.api_handler = self
@@ -106,9 +106,13 @@
end
# Override this to specify elements that must be present in the response
# Make it an Array of keys
def mandatory_elements
+ nil
+ end
+
+ def root_attributes
nil
end
end
end
\ No newline at end of file