dynamics-business-central

Dynamics HttpClient call never succeeds

爱⌒轻易说出口 提交于 2021-02-11 13:36:34
问题 I am developing a business central control add in where I need to call external web services. For this, I am using the HttpClient class in AL but no call succeeds. if not Client.Get('https://google.com', Response) then begin responseText := Response.ReasonPhrase(); Message(responseText); Error('didnt work'); end; It takes about 2.5-3 Minutes to finish the call. ResponseText is ' OK ' and HttpStatusCode is ' 200 ' but the call always fails and goes into error handling block. Reading the

Dynamics NAV Web Service Call with C# succeeds after 401 errors

孤者浪人 提交于 2021-01-29 09:13:20
问题 I'm experiencing some odd behaviour (meaning I don't understand what's happening) and I'd like some help fixing it if possible. We have some Dynamics 365 NAV Business Central web services exposed an secure with an SSL ceritificate, which we're accessing using some standard C# code. We've added the SOAP proxy to an ASP .NET Webforms application and this is all working as expected. We then declare an instance of the web service, set the credentials using a new NetworkCredential instance, and