Google Groups

Re: Body Wrappers


rubiii Aug 25, 2011 6:13 AM
Posted in group: Savon
you can overwrite the input tag with an array of [namespace, tag,
attributes] like this:

client.request(:retrieve) do
  soap.input = [nil, "RetrieveRequestMsg", "xmlns" => "http://
exacttarget.com/wsdl/partnerAPI"]
  soap.body = {
    ':RetrieveRequest' => {
      ':ObjectType' => 'List',
      ':Properties' => ['ListName','ID'],
      ':Filter' => {
        ':Property' => 'ID',
        ':SimpleOperator' => 'equals',
        ':Value' => '12345',
      }
    }
  }
end

cheers,
daniel