Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Dynamics 365 SOAP EndPoint Test from SOAP UI

Posted on by 5

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

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 SOAP EndPoint Test from SOAP UI

    hi , how to create  Action by using soapui 4.5.1 on onpremise mscrm2013  

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 SOAP EndPoint Test from SOAP UI

    Were you able to resolve this?We are getting same error while trying to use SOAP UI.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Dynamics 365 SOAP EndPoint Test from SOAP UI

    Hi

    Tenfold just recently added MS office 365 to their integrations list. Tenfold offers features such as click to dial, automatic call logging, easy note taking and task creation, screen pops on inbound and outbound calls, new lead/contact creation when no matching records, support for cases/opportunities and advanced analytics on the backend. They also support MS Dynamics integration. www.tenfold.com/.../dynamics

  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    Nadeeja Bomiriya 6,804 on at
    RE: Dynamics 365 SOAP EndPoint Test from SOAP UI

    Hi Narasimha,

    It's best to use the new REST API instead of the SOAP service for brand new applications.  SOAP service will be deprecated in a future release.

    msdn.microsoft.com/.../mt593051.aspx

    This tool will help you build queries.

    github.com/.../CRMRESTBuilder

    jlattimer.blogspot.com.au/.../crm-rest-builder-2300-now-with-web-api.html

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans