.Stat Data WareHouse Exit Gate - Authentication


Click here for a complete list of operations.

WindowsAuthenticate

For authentication of internal users (step n° 1+2)
This method must be called BEFORE any other .Stat web service method is used.
Make sure to explicitely provide the user credentials to this web service.

.NET Example:
WebService.Credentials = System.Net.CredentialCache.DefaultCredentials;
OR:
WebService.Credentials = new System.Net.NetworkCredential(username,password,domain);

If you have been successfully authenticated (using Integrated Windows Authentication) then the method returns a string with your session ID, otherwise an exception.
Provide this session ID, your user name and the domain to all other .Stat web service methods as parameters in the SOAP header.

Test

The test form is only available for requests from the local machine.

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /OECDStatWS_Authentication/OECDStatWS_Authentication.asmx HTTP/1.1
Host: stats.oecd.org
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://stats.oecd.org/OECDStatWS/Authentication/WindowsAuthenticate"

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <WindowsAuthenticate xmlns="http://stats.oecd.org/OECDStatWS/Authentication/" />
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <WindowsAuthenticateResponse xmlns="http://stats.oecd.org/OECDStatWS/Authentication/">
      <WindowsAuthenticateResult>string</WindowsAuthenticateResult>
    </WindowsAuthenticateResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /OECDStatWS_Authentication/OECDStatWS_Authentication.asmx HTTP/1.1
Host: stats.oecd.org
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <WindowsAuthenticate xmlns="http://stats.oecd.org/OECDStatWS/Authentication/" />
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <WindowsAuthenticateResponse xmlns="http://stats.oecd.org/OECDStatWS/Authentication/">
      <WindowsAuthenticateResult>string</WindowsAuthenticateResult>
    </WindowsAuthenticateResponse>
  </soap12:Body>
</soap12:Envelope>