web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Webservice, Soap and VS Code

(0) ShareShare
ReportReport
Posted on by 1,003

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

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Webservice, Soap and VS Code

    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#).

  • Claus Macali.dk Profile Picture
    1,003 on at
    RE: Webservice, Soap and VS Code

    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

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Webservice, Soap and VS Code

    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(....)

  • Claus Macali.dk Profile Picture
    1,003 on at
    RE: Webservice, Soap and VS Code

    Hi Stafano, no,  we will give it a go

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

#1
Saurav.Dhyani Profile Picture

Saurav.Dhyani 2 Super User 2025 Season 2

#2
RK-25090803-0 Profile Picture

RK-25090803-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans