Hello Experts,
I am calling a (using generated client) from (CRM 365 OnPrimise) plugin registered on isolation mode NONE.
Getting the following exception:-
There was no endpoint listening at xyzdomain.domain.com:8443/WebITL.svc that could accept the message.
This is often caused by an incorrect address or SOAP action. See InnerException, if present, for more details.
Inner Exception - Unable to connect to the remote server
My WCF Service web.confg is:
Plugin Code Calling :
var myClient = GetTALClient(EndPoint); GetCustomerDetailsRequest request = new GetCustomerDetailsRequest(); request.enroll = "ABC123333"; myClient.Open(); GetCustomerDetailsResponse response= myClient.GetCustomerDetails(request); myClient.Close(); private WebTALClient GetTALClient(string EndPoint) { BasicHttpBinding myBinding; if (EndPoint.ToLower().Contains("https://")) { myBinding = new BasicHttpBinding(System.ServiceModel.BasicHttpSecurityMode.Transport); ServicePointManager.ServerCertificateValidationCallback = (sendr, cert, chain, sslPolicyErrors) => true; myBinding.Security.Mode = BasicHttpSecurityMode.Transport; } else { myBinding = new BasicHttpBinding(); myBinding.Security.Mode = BasicHttpSecurityMode.None; } myBinding.Name = "basicHttpBinding"; myBinding.MaxReceivedMessageSize = int.MaxValue; ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12; myBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.None; myBinding.Security.Transport.ProxyCredentialType = HttpProxyCredentialType.None; myBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName; var endPointAddress = new EndpointAddress(EndPoint); var myClient = new WebTALClient(myBinding, endPointAddress); return myClient; }
Binding is :
I have tried a lot to fix it but maybe something I am unable to figure out, it works fine in the development environment but not on SIT/UAT environment.
Please suggest what am I missing here ??
Thanks