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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

How to generate and compile the proxy class in NAV

(0) ShareShare
ReportReport
Posted on by 22

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

  • Suggested answer
    Suresh Kulla Profile Picture
    50,280 Super User 2026 Season 1 on at

    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

  • Suggested answer
    Ashwini Tripathi Profile Picture
    4,624 on at
  • Manish Sinha Profile Picture
    22 on at

    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

  • Manish Sinha Profile Picture
    22 on at

    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

  • Verified answer
    Ashwini Tripathi Profile Picture
    4,624 on at

    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.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans