I'm not getting the expected results with the savon gem
passing multiple parameters and giving them attributes.
Input:
message: {
parameterId: 'timePeriod',
:query => [[:parameter=>{:@KeyId=>'geo', :@Value=>'528'}],
[:parameter=>{:@KeyId=>'timeType', :@Value=>'5'}]]
}
Actual output:
<env:Body>
<tns:DiscoverParameterValues>
<tns:parameterId>timePeriod</tns:parameterId>
<tns:query>
<element>
<parameter KeyId="geo" Value="528"/>
</element>
</tns:query>
<tns:query>
<element>
<parameter KeyId="timeType" Value="5"/>
</element>
</tns:query>
</tns:DiscoverParameterValues>
</env:Body>
</env:Envelope>
Expected output:
<env:Body>
<tns:DiscoverParameterValues>
<tns:parameterId>timePeriod</tns:parameterId>
<tns:query>
<parameter KeyId="geo" Value="528"/>
<parameter KeyId="timeType" Value="5"/>
</tns:query>
</tns:DiscoverParameterValues>
</env:Body>
</env:Envelope>