title: Testing Microsoft EWS (Exchange web service) using postman
body: <p>I am trying to test EWS with the postman. I tried to obtain the WSDL from <a href="https://outlook.office365.com/EWS/Exchange.asmx" rel="nofollow noreferrer">https://outlook.office365.com/EWS/Exchange.asmx</a>, but the WSDL returned from the link throws a not found error. </p>
  
  <p>Then after following the conversations here, <a href="https://social.msdn.microsoft.com/Forums/lync/en-US/07a01fbe-ef5e-4b9c-b1a2-be0945d4b621/how-to-get-serviceswsdl-for-office-365?forum=exchangesvrdevelopment" rel="nofollow noreferrer">https://social.msdn.microsoft.com/Forums/lync/en-US/07a01fbe-ef5e-4b9c-b1a2-be0945d4b621/how-to-get-serviceswsdl-for-office-365?forum=exchangesvrdevelopment</a>.</p>
  
  <p>I was able to get the WDSL from <a href="https://outlook.office365.com/ews/services.wsdl" rel="nofollow noreferrer">https://outlook.office365.com/ews/services.wsdl</a> after basic auth.</p>
  
  <p>For executing a SOAP call</p>
  
  <ol>
  <li>I tried sending a POST request to <a href="https://outlook.office365.com/ews/services.wsdl" rel="nofollow noreferrer">https://outlook.office365.com/ews/services.wsdl</a>, this resulted in the HTTP 405 Method not Allowed.</li>
  <li>I tried sending a POST request to <a href="https://outlook.office365.com/EWS/Exchange.asmx" rel="nofollow noreferrer">https://outlook.office365.com/EWS/Exchange.asmx</a>, which returned the following response.</li>
  </ol>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"&gt;
      &lt;s:Header&gt;
          &lt;Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none"&gt;*&lt;/Action&gt;
      &lt;/s:Header&gt;
      &lt;s:Body&gt;
          &lt;s:Fault&gt;
              &lt;faultcode xmlns:a="http://schemas.microsoft.com/exchange/services/2006/types"&gt;a:ErrorInvalidRequest&lt;/faultcode&gt;
              &lt;faultstring xml:lang="en-US"&gt;The request is invalid.&lt;/faultstring&gt;
              &lt;detail&gt;
                  &lt;e:ResponseCode xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors"&gt;ErrorInvalidRequest&lt;/e:ResponseCode&gt;
                  &lt;e:Message xmlns:e="http://schemas.microsoft.com/exchange/services/2006/errors"&gt;The request is invalid.&lt;/e:Message&gt;
              &lt;/detail&gt;
          &lt;/s:Fault&gt;
      &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>
  
  <p>My XML POST content is for example this</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
                 xmlns:t="https://schemas.microsoft.com/exchange/services/2006/types"
                 xmlns:m="https://schemas.microsoft.com/exchange/services/2006/messages"&gt;
     &lt;soap:Header&gt;
        &lt;t:RequestServerVersion Version="Exchange2006" /&gt;
     &lt;/soap:Header&gt;
     &lt;soap:Body &gt;
        &lt;m:FindPeople&gt;
           &lt;m:IndexedPageItemView BasePoint="Beginning" MaxEntriesReturned="100" Offset="0"/&gt;
           &lt;m:ParentFolderId&gt;
              &lt;t:DistinguishedFolderId Id="contacts"/&gt;
           &lt;/m:ParentFolderId&gt;
        &lt;/m:FindPeople&gt;
     &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>I am trying to follow a SOAP request (<a href="https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/findpeople-operation" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/exchange/client-developer/web-service-reference/findpeople-operation</a>). Am I missing something?</p>