lib/rews/folder.rb in rews-0.2.1 vs lib/rews/folder.rb in rews-0.2.2

- old
+ new

@@ -94,11 +94,11 @@ # find <tt>Folder::Folder</tt>s within a <tt>Folder::Folder</tt> def find_folder(opts={}) opts = check_opts(FIND_FOLDER_OPTS, opts) r = with_error_check(client, :find_folder_response, :response_messages, :find_folder_response_message) do - client.request(:wsdl, "FindFolder", "Traversal"=>"Shallow") do + client.savon_client.request(:wsdl, "FindFolder", "Traversal"=>"Shallow") do soap.namespaces["xmlns:t"]=SCHEMA_TYPES xml = Builder::XmlMarkup.new xml << Shape::FolderShape.new(opts[:folder_shape]||{}).to_xml xml << View::IndexedPageFolderView.new(opts[:indexed_page_folder_view]).to_xml if opts[:indexed_page_folder_view] @@ -141,11 +141,11 @@ # find <tt>Item::Item</tt>s in a folder def find_item(opts={}) opts = check_opts(FIND_ITEM_OPTS, opts) r = with_error_check(client, :find_item_response, :response_messages, :find_item_response_message) do - client.request(:wsdl, "FindItem", "Traversal"=>"Shallow") do + client.savon_client.request(:wsdl, "FindItem", "Traversal"=>"Shallow") do soap.namespaces["xmlns:t"]=SCHEMA_TYPES xml = Builder::XmlMarkup.new xml << Shape::ItemShape.new(opts[:item_shape]||{}).to_xml @@ -189,11 +189,11 @@ def get_item(message_ids, opts={}) opts = check_opts(GET_ITEM_OPTS, opts) message_ids = message_ids.result if message_ids.is_a?(FindResult) r = with_error_check(client, :get_item_response,:response_messages,:get_item_response_message) do - client.request(:wsdl, "GetItem") do + client.savon_client.request(:wsdl, "GetItem") do soap.namespaces["xmlns:t"]=SCHEMA_TYPES xml = Builder::XmlMarkup.new xml << Shape::ItemShape.new(opts[:item_shape]||{}).to_xml @@ -221,10 +221,10 @@ def delete_item(message_ids, opts={}) opts = check_opts(DELETE_ITEM_OPTS, opts) message_ids = message_ids.result if message_ids.is_a?(FindResult) r = with_error_check(client, :delete_item_response, :response_messages, :delete_item_response_message) do - client.request(:wsdl, "DeleteItem", :DeleteType=>opts[:delete_type]) do + client.savon_client.request(:wsdl, "DeleteItem", :DeleteType=>opts[:delete_type]) do soap.namespaces["xmlns:t"]=SCHEMA_TYPES xml = Builder::XmlMarkup.new xml.wsdl :ItemIds do