Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

how to use service reference and proxy class used in .net in vs code working with webservice

Posted on by 997

Working with webservice in 2018 and vs code, i cant find how to working with  service reference and proxy class, as we could in .net.

It use for authentication and keep the connect alive

*This post is locked for comments

  • Claus Macali.dk Profile Picture
    Claus Macali.dk 997 on at
    RE: how to use service reference and proxy class used in .net in vs code working with webservice

    And in this case then

    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?

  • Claus Macali.dk Profile Picture
    Claus Macali.dk 997 on at
    RE: how to use service reference and proxy class used in .net in vs code working with webservice

    Thanks Stefano

  • Suggested answer
    Stefano Demiliani Profile Picture
    Stefano Demiliani 37,162 Most Valuable Professional on at
    RE: how to use service reference and proxy class used in .net in vs code working with webservice

    You can’t add a web reference with VSCode. If you need to call a WS, use HTTPClient class.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans