I am trying to integrate e-commerce with D365 FO(PU-Update24 (7.0.5179.35392)). I have a service URL from third-party e-commerce to invoke it in D365 Fo.
I have written required classes to consume the URL and generate XML and send to the URL.
From Ax, I am generating the XML request and passing it to a third party application, but I am getting below error.
When I am trying to invoke the external web service URL and send the XML as a parameter to the web service URL I'm getting the error "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
Can you guys help me on this?
Have you tried debugging the code, It seems SSL validation needs to be removed by your code.
Try below line of code , before calling external service.
Hi Sukrut Parab,
I tried the above line of code, but still getting the same issue.
below is the line of code added:
streamstr = webreq.GetRequestStream();
streamWriter = new System.IO.StreamWriter(streamstr);
webresponse = webreq.GetResponse();
responsestr = webresponse.GetResponseStream();
reader = new System.IO.StreamReader(responsestr);
getting the error in the above highlighted line
Business Applications communities