We have a case where in we need to connect to a SOAP 1.1 web service with anonymous authentication, but in the soap request message we need to pass in the token and then send in the request to the web service. In response we will get the response of authentication result, if it is successful then we need to send another soap message with the same connection. How can this be done in VS Code? Can we make use of XML Document to frame the messages & send it with the Http Client?
*This post is locked for comments
Hi Stafano, no, we will give it a go
Have you tryed with HttpClient for calling the WS, then HttpResponseMessage for parsing the response?
For passing a custom Header to your request, you can use HttpClient.DefaultRequestHeaders.Add(....)
Sure its al code, but if we have make a clean extension 2 app, we just have the al code to use. If we did not have to keep it alive no problem
Do you say “VS CODE” because you want do all these tasks in AL? It’s quite difficult to do everything only with AL now. Maybe you can call an Azure Function and here you can create the interaction with the external WS as you want (here you have full C#).
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156