lib/rews/client.rb
# create items, specifying a list of Rsxml expressions, one for each item in the Items list e.g.
# 
#  client.create_item(:items=>[[:suppress_read_receipt, [:reference_item_id, {:id=>"abc", :change_key=>"def"}]]])
create items, specifying a list of Rsxml expressions, one for each item in the Items list e.g.
create items specifying a list of Rsxml expressions one for each item in the Items list e . g .
def create_item(opts={})
      opts = check_opts(CREATE_ITEM_OPTS, opts)
      items = opts[:items].compact if opts[:items]
      raise "no items!" if items.empty?
      attrs = {}
      attrs[:message_disposition] = opts[:message_disposition] if opts[:message_disposition]
      attrs[:send_meeting_invitations] = opts[:send_meeting_invitations] if opts[:send_meeting_invitations]
      r = with_error_check(self, :create_item_response, :response_messages, :create_item_response_message) do
        savon_client.request(:wsdl, "CreateItem", attrs) do
          http.headers["SOAPAction"] = "\"#{SCHEMA_MESSAGES}/CreateItem\"" 
          soap.namespaces["xmlns:t"]=SCHEMA_TYPES
          xml = Builder::XmlMarkup.new
          xml.wsdl :Items do
            items.each do |item|
              xml << Util.rsxml_to_xml(item)
            end
          end
          soap.body = xml.target!
        end
      end
      r
    end
def create_item ( opts = { } ) opts = check_opts ( CREATE_ITEM_OPTS , opts ) items = opts [ :items ] . compact if opts [ :items ] raise "no items!" if items . empty? attrs = { } attrs [ :message_disposition ] = opts [ :message_disposition ] if opts [ :message_disposition ] attrs [ :send_meeting_invitations ] = opts [ :send_meeting_invitations ] if opts [ :send_meeting_invitations ] r = with_error_check ( self , :create_item_response , :response_messages , :create_item_response_message ) do savon_client . request ( :wsdl , "CreateItem" , attrs ) do http . headers [ "SOAPAction" ] = "\"#{SCHEMA_MESSAGES}/CreateItem\"" soap . namespaces [ "xmlns:t" ] = SCHEMA_TYPES xml = Builder :: XmlMarkup . new xml . wsdl :Items do items . each do | item | xml << Util . rsxml_to_xml ( item ) end end soap . body = xml . target! end end r end
create items, specifying a list of Rsxml expressions, one for each item in the Items list e.g.
create items specifying a list of Rsxml expressions one for each item in the Items list e . g .
# required by EWS 2007
opts
<not_specific>