As part of our Dynamics 365 (CRM Trial Tenant) Integration with a Java based product, we would need to consume the SOAP Endpoint from Java ( using SOAP Request through a HttpRequest API)
We are trying to test the Dynamics 365 SOAP endpoint in SOAP UI tool (smart bear). We are getting the following error on authentication.
- DEBUG:Receiving response: HTTP/1.1 401 Unauthorized.
- WARN:Authentication error: Unable to respond to any of these challenges: {bearer=WWW-Authenticate: Bearer error=invalid_token, error_description=Error during token validation!, redirect_uri=https%3a%2f%2flogin.windows.net%2fcommon%2fwsfed, realm=Microsoft.CRM}
-
WWW-Authenticate Bearer error=invalid_token, error_description=Error during token validation!, redirect_uri=https%3a%2f%2flogin.windows.net%2fcommon%2fwsfed, realm=Microsoft.CRM
What we have tried with is
1. Created a trial instance for Dynamics 365 (CRM) using an Office 365 Login Account (xxx@xxx.onmicrosoft.com)
2. Generated SOAP Operations in SOAP UI using the WSDL for the SOAP End point ( https://xxx.api.crm.dynamics.com/XRMServices/2011/Organization.svc/web)
3. Trying to retrieve a contact with the retrieve soap request message (
<ser:entityName>contact</ser:entityName>
<ser:id>GUID of the contact</ser:id>
4. Added the following headers
SOAPAction | schemas.microsoft.com/.../Retrieve |
Content-Type | text/xml; charset=utf-8 |
Accept | application/xml, text/xml, */* |
5. Tried authenticating using Basic, NTLM and Kerberos supported in SOAP UI. None of them worked
User name - xxx@xxx.onmicrosoft.com
If any one encountered this issue in SOAP UI, appreciate any pointers or suggestions.
Thanks & Regards,
*This post is locked for comments