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)

Can we call internal Web Service from CRM 2016 Online Plugins?

(0) ShareShare
ReportReport
Posted on by 40

I am trying to call Internal IBM Integration Bus(IIB) service from CRM Plugins, but it is not working, it is throwing following exception. If i try to call same service from .Net application, it works fine. can you pls let me know what could be the problem? Service should be exposed to internet always to call from CRM Online Plugins?

Unhandled Exception: System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault, Microsoft.Xrm.Sdk, Version=8.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]: Unexpected exception from plug-in (Execute): CRM.Plugins.Contact.Contact: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at esb1.stdev.test.com/.../PartyLookupService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.Detail:
<OrganizationServiceFault xmlns:i="www.w3.org/.../XMLSchema-instance" xmlns="schemas.microsoft.com/.../Contracts">
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d2p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>Unexpected exception from plug-in (Execute): CRM.Plugins.Contact.Contact: System.ServiceModel.EndpointNotFoundException: There was no endpoint listening at esb1.stdev.test.com/.../PartyLookupService that could accept the message. This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.</Message>
<Timestamp>2017-06-06T13:38:24.9105376Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource>PluginExecution</ExceptionSource>
<InnerFault>
<ErrorCode>-2147220956</ErrorCode>
<ErrorDetails xmlns:d3p1="schemas.datacontract.org/.../System.Collections.Generic" />
<Message>The remote name could not be resolved: 'esb1.stdev.test.com'CRM.Plugins.Contact.Contact: System.Net.WebException: The remote name could not be resolved: 'esb1.stdev.test.com'</Message>
<Timestamp>2017-06-06T13:38:24.9105376Z</Timestamp>
<ExceptionRetriable>false</ExceptionRetriable>
<ExceptionSource i:nil="true" />
<InnerFault i:nil="true" />
<OriginalException i:nil="true" />
<TraceText i:nil="true" />
</InnerFault>
<OriginalException>System.ServiceModel.EndpointNotFoundException

*This post is locked for comments

I have the same question (0)
  • Verified answer
    ashlega Profile Picture
    34,477 on at

    Hi,

     crm plugins are running on the CRM server (and, it seems, you are using CRM online, so your plugins are running on the MS servers). If the plugin is trying to connect to a web service, that web service has to be accessible from the CRM server. From the error message, it seems that it's not the case:

    "The remote name could not be resolved: 'esb1.stdev.test.com'"

  • Verified answer
    M I Mostafa Profile Picture
    4,257 on at

    Hi,

    Are you on Dynamics 365 Online or on-premise? If Online, then what URL are you using for the endpoint? It looks like you are pointing to a local server that is not accessible to the plugin.

    Please also note that plugins cannot call a web service using an IP address. It should be a DNS name (fully qualified name). You also need to check the Trust if it is full or partial based on if it is on-premise / IFD installation or a CRM Online one.

    Read more about the plugin isolation considerations here:

    msdn.microsoft.com/.../gg334752.aspx

    If you found my response helpful, please mark "yes" to confirm it helped you.

  • Verified answer
    Community Member Profile Picture
    on at

    Most likely the firewall issue.

    CRM server can't communicate with the server hosted the web service.

    Try few things to identify the issue:

    1.Try to off firewall? (Quick and dirty way)

    2.Try to ping/telnet the server (making sure the DNS is correct, port is open)

    3.Try portquery (one of the favourite tool to test the firewall port)

    Once you know the issue you can find the solution.

  • Verified answer
    Nithya Gopinath Profile Picture
    17,078 on at

    Hi,

    The issue may be due to any of the following reasons.

    1. Check the credentials.

    2. Windows firewall might be ON.

    3. Configure web.config

    4. Enable HTTPS host header

    See the links below.

    social.msdn.microsoft.com/.../there-was-no-endpoint-listening-at

    stackoverflow.com/.../wcf-there-was-no-endpoint-listening-at-net-tcp-querier-svc-that-could-a

    www.codeproject.com/.../Error-There-was-no-endpoint-listening-at

  • Verified answer
    JohnAnonymous Profile Picture
    5,241 on at

    If you are running online make sure that the address you are trying to connect to is accessible from the internet. Unless you own the test.com domain, this is very likely to be an internal address not exposed to the internet.

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