After you configure the Windows Auto-Discovery Service, use a REST client to issue a POST request to yours WADS endpoint.

The POST request must connect to the correct endpoint URL:

https://EnterpriseEnrollment.{ DOMAIN}/EnrollmentServer/Discovery.svc

Note:

Make sure that the device can reach https://EnterpriseEnrollment.{DOMAIN} without any SSL errors.

Example of a Request Body

                  
                  
    
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope"
xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.microsoft.com/windows/management/
2012/01/enrollment/IDiscoveryService/Discover
</a:Action>
<a:MessageID>urn:uuid:748132ec-a575-4329-b01b-6171a9cf8478</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">https://EnterpriseEnrollment.{DOMAIN}:443/EnrollmentServer/Discovery.svc
</a:To>
</s:Header>
<s:Body>
<Discover xmlns= "http://schemas.microsoft.com/windows/management/
2012/01/enrollment">
<request xmlns:i= "http://www.w3.org/2001/XMLSchema-instance">
<EmailAddress>{EMAIL ADDRESS}</EmailAddress>
<RequestVersion>1.0</RequestVersion>
</request>
</Discover>
</s:Body>
</s:Envelope>

Example of an Expected Response

                  
                  
    
<?xml version="1.0" encoding="UTF-8"?>
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://schemas.microsoft.com/windows/management/2012/01/enrollment/IDiscoveryService/DiscoverResponse
</a:Action>
<ActivityId xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics"
CorrelationId="48915517-66c6-4ab7-8f77-c8277e45b3cf=">
a4067bc9-ce15-446b-a3f7-5ea1006256f5</ActivityId>
<a:RelatesTo>urn:uuid:748132ec-a575-4329-b01b-6171a9cf8478</a:RelatesTo>
</s:Header>
<s:Body>
<DiscoverResponse xmlns="http://schemas.microsoft.com/windows/management/2012/01/enrollment">
<DiscoverResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<AuthPolicy>Federated</AuthPolicy>
<AuthUrl>prod</AuthUrl>
<AuthenticationServiceUrl>https://{DS HOSTNAME}/DeviceManagement/Enrollment</AuthenticationServiceUrl>
<EnrollmentPolicyServiceUrl>https://{DS HOSTNAME}/DeviceServices/Policy.svc</EnrollmentPolicyServiceUrl>
<EnrollmentServiceUrl>https://{DS HOSTNAME}/DeviceServices/Enrollment.svc</EnrollmentServiceUrl>
</DiscoverResult>
</DiscoverResponse>
</s:Body>
</s:Envelope>