Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>WebDAV is what i use... </p> <p>Here's a function i wrote to access our exchange server (be kind i wrote it years ago).. (:</p> <pre><code> /// &lt;summary&gt; /// Returns XML string for a specific query /// &lt;/summary&gt; /// &lt;param name="Query"&gt;&lt;/param&gt; /// &lt;param name="Account"&gt;&lt;/param&gt; /// &lt;param name="Folder"&gt;&lt;/param&gt; /// &lt;returns&gt;&lt;/returns&gt; private string ProcessRequest(string Query, string Account, string Folder) { System.Net.WebRequest req = WebRequest.Create("http://" + MailServer + "/exchange/" + Account + "/" + Folder); req.Headers.Add("Depth", "1"); req.Headers.Add("Brief", "t"); req.Credentials = ncCurrent; Byte[] bytes = System.Text.Encoding.ASCII.GetBytes(Query); req.ContentType = "text/xml"; req.ContentLength = bytes.Length; req.Method = "SEARCH"; System.IO.Stream oStreamOut = req.GetRequestStream(); oStreamOut.Write(bytes, 0, bytes.Length); oStreamOut.Close(); WebResponse rsp = req.GetResponse(); System.IO.Stream oStreamIn = rsp.GetResponseStream(); System.IO.StreamReader oStreamRead = new System.IO.StreamReader(oStreamIn); return oStreamRead.ReadToEnd(); } </code></pre> <p>and here's how i invoke it</p> <pre><code> string xmldata = "&lt;?xml version= \"1.0\"?&gt;" + "&lt;g:searchrequest xmlns:g=\"DAV:\"&gt;" + "&lt;g:sql&gt; Select \"DAV:href\" , \"urn:schemas:httpmail:subject\" " + "FROM Scope('SHALLOW TRAVERSAL OF \"/exchange/" + Account + "/" + Folder + "\"') " + "&lt;/g:sql&gt;" + "&lt;/g:searchrequest&gt;"; XmlDocument d = new XmlDocument(); d.LoadXml(ProcessRequest(xmldata, Account, Folder)); </code></pre> <p>hopefully this points you in the right direction</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload