lib/rews/item.rb
# delete the Item from the server
delete the Item from the server
delete the Item from the server
def delete_item(opts={})
        opts = check_opts(DELETE_ITEM_OPTS, opts)
        r = with_error_check(client, :delete_item_response, :response_messages, :delete_item_response_message) do
          client.savon_client.request(:wsdl, "DeleteItem", :DeleteType=>opts[:delete_type]) do
            http.headers["SOAPAction"] = "\"#{SCHEMA_MESSAGES}/DeleteItem\"" 
            soap.namespaces["xmlns:t"]=SCHEMA_TYPES
            xml = Builder::XmlMarkup.new
            xml.wsdl :ItemIds do
              xml << self.to_xml(opts[:ignore_change_keys])
            end
            soap.body = xml.target!
          end
        end
        true
      end
def delete_item ( opts = { } ) opts = check_opts ( DELETE_ITEM_OPTS , opts ) r = with_error_check ( client , :delete_item_response , :response_messages , :delete_item_response_message ) do client . savon_client . request ( :wsdl , "DeleteItem" , :DeleteType => opts [ :delete_type ] ) do http . headers [ "SOAPAction" ] = "\"#{SCHEMA_MESSAGES}/DeleteItem\"" soap . namespaces [ "xmlns:t" ] = SCHEMA_TYPES xml = Builder :: XmlMarkup . new xml . wsdl :ItemIds do xml << self . to_xml ( opts [ :ignore_change_keys ] ) end soap . body = xml . target! end end true end
delete the Item from the server
delete the Item from the server
# required by EWS 2007
opts
<not_specific>