Skip to content

Commit

Permalink
adds xsi:nil="true" attribute for null values
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco Negri committed Jun 5, 2012
1 parent 54833fe commit 8b3f90d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion app/helpers/wash_out_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ def wsdl_data(xml, params)

if !param.struct?
if !param.multiplied
xml.tag! tag_name, param.value, "xsi:type" => param.namespaced_type
if param.value.nil?
xml.tag! tag_name, param.value, "xsi:type" => param.namespaced_type,
"xsi:nil" => "true"
else
xml.tag! tag_name, param.value, "xsi:type" => param.namespaced_type
end
else
param.value = [] unless param.value.is_a?(Array)
param.value.each do |v|
Expand Down

0 comments on commit 8b3f90d

Please sign in to comment.