lib/ews/soap/exchange_data_services.rb
def resolve_names(opts)
      opts = opts.clone
      fcd = opts.has_key?(:full_contact_data) ? opts[:full_contact_data] : true
      req = build_soap! do |type, builder|
        if(type == :header)
        else
        builder.nbuild.ResolveNames {|x|
          x.parent['ReturnFullContactData'] = fcd.to_s
          x.parent['SearchScope'] = opts[:search_scope] if opts[:search_scope]
          x.parent.default_namespace = @default_ns
          # @todo builder.nbuild.ParentFolderIds
          x.UnresolvedEntry(opts[:name])
        }
        end
      end
      do_soap_request(req)
    end
def resolve_names(opts)
      opts = opts.clone
      fcd = opts.has_key?(:full_contact_data) ? opts[:full_contact_data] : true
      req = build_soap! do |type, builder|
        if(type == :header)
        else
        builder.nbuild.ResolveNames {|x|
          x.parent['ReturnFullContactData'] = fcd.to_s
          x.parent['SearchScope'] = opts[:search_scope] if opts[:search_scope]
          x.parent.default_namespace = @default_ns
          # @todo builder.nbuild.ParentFolderIds
          x.UnresolvedEntry(opts[:name])
        }
        end
      end
      do_soap_request(req)
    end
def resolve_names ( opts ) opts = opts . clone fcd = opts . has_key? ( :full_contact_data ) ? opts [ :full_contact_data ] : true req = build_soap! do | type , builder | if ( type == :header ) else builder . nbuild . ResolveNames { | x | x . parent [ 'ReturnFullContactData' ] = fcd . to_s x . parent [ 'SearchScope' ] = opts [ :search_scope ] if opts [ :search_scope ] x . parent . default_namespace = @default_ns # @todo builder.nbuild.ParentFolderIds x . UnresolvedEntry ( opts [ :name ] ) } end end do_soap_request ( req ) end
Resolve ambiguous e-mail addresses and display names
 @see http://msdn.microsoft.com/en-us/library/aa565329.aspx ResolveNames
 @see http://msdn.microsoft.com/en-us/library/aa581054.aspx UnresolvedEntry
 @param [Hash] opts
 @option opts [String] :name the unresolved entry
 @option opts [Boolean] :full_contact_data (true) Whether or not to return
   the full contact details.
 @option opts [String] :search_scope where to seach for this entry, one of
   SOAP::Contacts, SOAP::ActiveDirectory, SOAP::ActiveDirectoryContacts
   (default), SOAP::ContactsActiveDirectory
 @option opts [String, FolderId] :parent_folder_id either the name of a
   folder or it's numerical ID.
   @see http://msdn.microsoft.com/en-us/library/aa565998.aspx
Resolve ambiguous e - mail addresses and display names