none
Can't Access External Web Services from CRM Online

    Pregunta

  • Connecting to outside Web Services from a Dynamics CRM 2011 Online plugin works from a US instance, however the exact same code does not work from an instance in the Singapore (Data centre for Australia where my clients and our company are located):

     

    BasicHttpBinding binding = new BasicHttpBinding();
    EndpointAddress address = new EndpointAddress("http://my.domain.com/webservice");
    DataService1 client = new DataService1(binding, address);
    client.RunMethod();
    

    On a non-US instance this code returns the following error:

    System.ServiceModel.FaultException`1[[Microsoft.Xrm.Sdk.OrganizationServiceFault,
    Microsoft.Xrm.Sdk, Version=5.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]:
    System.Security.SecurityException: Microsoft Dynamics CRM has experienced an error.
    Reference number for administrators or support: #2BEE9520

    Are there any differences between the data centres for accessing external resources? DNS issues?


    Chris Johnstone, Senior Developer | KKL Pty Ltd | www.kkl.com.au
    martes, 31 de mayo de 2011 5:31

Todas las respuestas

  • Hello,

     

    I think that the best suggestion is to open ticket with your current problem description. I think that Microsoft Support would help you with your issue.


    Microsoft CRM Freelancer

    My blog (english)
    Мой блог (русскоязычный)
    martes, 31 de mayo de 2011 5:37
  • Are you sure that the endpoint address is eg. "http://my.domain.com/webservice" and not eg. "http://my.domain.com:**/webservice"

    because it may happen that the difference between the two datacenters is a firewall preventing outgoing calls through ports other than 80 (as happening with many host providers).


    Islam Eldemery
    http://idemery.net
    idemery
    • Propuesto como respuesta Islam Eldemery miércoles, 01 de junio de 2011 11:30
    martes, 31 de mayo de 2011 6:33
  • Yes, to be specific, the endpoint I have been testing is http://my.domain.com:9081/webservice 

    I will test using a web service hosted on port 80 and report back the result.

    Thanks for the tip


    Chris Johnstone, Senior Developer | KKL Pty Ltd | www.kkl.com.au
    martes, 31 de mayo de 2011 6:39