Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

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

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

  • Verified answer
    M.T. Eikelenboom Profile Picture
    M.T. Eikelenboom 5,241 on at
    RE: Can we call internal Web Service from CRM 2016 Online Plugins?

    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.

  • Verified answer
    Nithya Gopinath Profile Picture
    Nithya Gopinath 17,074 on at
    RE: Can we call internal Web Service from CRM 2016 Online Plugins?

    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
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Can we call internal Web Service from CRM 2016 Online Plugins?

    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
    M I Mostafa Profile Picture
    M I Mostafa 4,257 on at
    RE: Can we call internal Web Service from CRM 2016 Online Plugins?

    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
    ashlega Profile Picture
    ashlega 34,475 on at
    RE: Can we call internal Web Service from CRM 2016 Online Plugins?

    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'"

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,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans