Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

How to generate and compile the proxy class in NAV

Posted on by 18

Hi Team,

In the example described in MSDN article https://msdn.microsoft.com/en-us/library/hh169399(v=nav.90).aspx

This example talks about to use proxy web service class and calls a Read method from the Microsoft Dynamics NAV web service.
WSDL.EXE used for generating proxy class but don't know how to register the CS file in NAV.

Thanks,

Manish Sinha

*This post is locked for comments

  • Verified answer
    Ashwini Tripathi Profile Picture
    Ashwini Tripathi 4,624 on at
    RE: How to generate and compile the proxy class in NAV

    Dear Suresh,

    Please follow the series, next blog in series does the same thing.

    msdynamicsnavashwinitripathi.wordpress.com/.../exposing-consuming-the-web-service-from-inside-navision-part-4

    If you follow full series.

    Creates Web Service in Navision & Exposes it

    DLL is created

    Using that DLL above Web Service is consumed as shown in your reference sample code.

  • Manish Sinha Profile Picture
    Manish Sinha 18 on at
    RE: How to generate and compile the proxy class in NAV

    Hi Ashwini,

    Thanks for your response.

    If my understanding is correct the example in MSDN article provide some solution in NAV only. Not using a custom dot net dll.

    Thanks,

    Manish Sinha

  • Manish Sinha Profile Picture
    Manish Sinha 18 on at
    RE: How to generate and compile the proxy class in NAV

    Hi Suresh,

    Thanks for your reply. If you check the blog example carefully you will find the code is written in NAV not in VS, see the variable declaration salesOrder & salesOrderService. Both are dot net variable. So there should be a way to generate & compile the proxy class in NAV.

    Thanks,

    Manish Sinha

  • Suggested answer
    Ashwini Tripathi Profile Picture
    Ashwini Tripathi 4,624 on at
  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 43,745 on at
    RE: How to generate and compile the proxy class in NAV

    You don't need to use WSDL to create a proxy, in your VS project just add the ur webservice URL using Add Service Reference and it will take care of creating proxy for you.

    Refer this link for adding WebService

    msdn.microsoft.com/.../dd339004.aspx

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,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans