title: How to do Windows Live Authentication (RST) via SOAP
body: <p>Does anybody has any pointer regarding this?</p>
  
  <p>We are currently trying with Java SOAP API.
  The URL used for windows live authentication is: <a href="https://login.live.com/RST2.srf" rel="nofollow noreferrer">https://login.live.com/RST2.srf</a></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa="http://www.w3.org/2005/08/addressing" xmlns:wssc="http://schemas.xmlsoap.org/ws/2005/02/sc" xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust"&gt;
    &lt;s:Header&gt;
      &lt;wsa:Action s:mustUnderstand="1"&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue&lt;/wsa:Action&gt;
      &lt;wsa:To s:mustUnderstand="1"&gt;HTTPS://login.live.com:443//RST2.srf&lt;/wsa:To&gt;
      &lt;wsa:MessageID&gt;1265627255&lt;/wsa:MessageID&gt;
      &lt;ps:AuthInfo xmlns:ps="http://schemas.microsoft.com/Passport/SoapServices/PPCRL" Id="PPAuthInfo"&gt;
        &lt;ps:HostingApp&gt;{52B7DF4E-8D6F-49B5-BA7A-2E77B06DF104}&lt;/ps:HostingApp&gt;
        &lt;ps:BinaryVersion&gt;5&lt;/ps:BinaryVersion&gt;
        &lt;ps:UIVersion&gt;1&lt;/ps:UIVersion&gt;
        &lt;ps:Cookies/&gt;
        &lt;ps:RequestParams&gt;AQAAAAIAAABsYwQAAAAxMDMz&lt;/ps:RequestParams&gt;
      &lt;/ps:AuthInfo&gt;
      &lt;wsse:Security&gt;
        &lt;wsse:UsernameToken wsu:Id="user"&gt;
          &lt;wsse:Username&gt;harvinder_singh@persistent.co.in&lt;/wsse:Username&gt;
          &lt;wsse:Password&gt;jigsaw&lt;/wsse:Password&gt;
        &lt;/wsse:UsernameToken&gt;
        &lt;wsu:Timestamp Id="Timestamp"&gt;
          &lt;wsu:Created&gt;2010-02-08T11:07:36Z&lt;/wsu:Created&gt;
          &lt;wsu:Expires&gt;2010-02-08T11:12:36Z&lt;/wsu:Expires&gt;
        &lt;/wsu:Timestamp&gt;
      &lt;/wsse:Security&gt;
    &lt;/s:Header&gt;
    &lt;s:Body&gt;
      &lt;wst:RequestSecurityToken Id="RST0"&gt;
        &lt;wst:RequestType&gt;http://schemas.xmlsoap.org/ws/2005/02/trust/Issue&lt;/wst:RequestType&gt;
        &lt;wsp:AppliesTo&gt;
          &lt;wsa:EndpointReference&gt;
            &lt;wsa:Address&gt;http://Passport.NET/tb&lt;/wsa:Address&gt;
          &lt;/wsa:EndpointReference&gt;
        &lt;/wsp:AppliesTo&gt;
        &lt;wsp:PolicyReference URI="MBI_SSL"/&gt;
      &lt;/wst:RequestSecurityToken&gt;
    &lt;/s:Body&gt;
  &lt;/s:Envelope&gt;
  </code></pre>