web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Dynamics 365 SOAP EndPoint Test from SOAP UI

(0) ShareShare
ReportReport
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

I have the same question (0)
  • Suggested answer
    Nadeeja Bomiriya Profile Picture
    6,804 on at

    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

  • Community Member Profile Picture
    on at

    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

  • Community Member Profile Picture
    on at

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

  • Community Member Profile Picture
    on at

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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans