I haven't used WSDLDriver but doe the tag object respond to to_a? If so you can do the following:
if soapResponse.getNewTagsSinceResult.respond_to? "tag" for tag in soapResponse.getNewTagsSinceResult.tag.to_a @tag = Tag.find_by_sync_id(tag.id) if (@tag) @tag.name = tag.name @tag.save else @tag = Tag.new @tag.name = tag.name @tag.sync_id = tag.id @tag.save end end end
Just a quick warning that currently all objects respond to to_a but this will soon be deprecated so for future versions it's better to check that the tag object class explicity implements to_a.