Generic Web Services Client (v2) for Microsoft Dynamics NAV

AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
edited 2018-07-28 in Download section
Generic Web Services Client for Microsoft Dynamics NAV
This simple codeunit allows you to consume any NAV page web service from C/AL without having to write any wrapper classes in .NET, or deploy any external dependencies. The only thing you need to have is the URL to the page web service.

More details and code examples at: http://vjeko.com/web-services-black-belt-consuming-nav-web-services-using-pure-cal/

https://mibuso.com/downloads/generic-web-services-client-v2-for-microsoft-dynamics-nav

Discuss this download here.

Comments

  • dankerrdankerr Member Posts: 9
    Great, thanks!

    Saw you @ Techdays and was hoping that you would post the source

    =D>
  • Marije_BrummelMarije_Brummel Member, Moderators Design Patterns Posts: 4,262
    dankerr wrote:
    Great, thanks!

    Saw you @ Techdays and was hoping that you would post the source

    =D>

    * LIKE *
  • VjekoVjeko Member Posts: 55
    dankerr wrote:
    Great, thanks!

    Saw you @ Techdays and was hoping that you would post the source

    =D>

    I said I would post the source, so I did. It's no voodoo inside, I don't know why I'd keep it secret :wink:
    (Co-)author of "Implementing Microsoft Dynamics NAV 2009"
    http://vjeko.com/
  • mdPartnerNLmdPartnerNL Member Posts: 802
    Hi, I asked on your site if I could debug the C# code? :oops: A big thanks for opening up my view for what can be done with those soap messages. The .net framework saves us from programming a lot of steps but I was feeling a bit dumb for not understanding what goes on behind the scenes.
  • VjekoVjeko Member Posts: 55
    Hi, I asked on your site if I could debug the C# code? :oops: A big thanks for opening up my view for what can be done with those soap messages. The .net framework saves us from programming a lot of steps but I was feeling a bit dumb for not understanding what goes on behind the scenes.

    I'll put up the C# code on my site - I need to produce it myself, too :) I started from it, but then was dumb enough to not save it ](*,)

    And I am trying to make it work in 2009, too. It's kind of tricky because there is no GETDOTNETTYPE, and some differences between .NET Framework 3.5 and 4.0. Some patience, and over weekend I post all of it here, and on my blog.
    (Co-)author of "Implementing Microsoft Dynamics NAV 2009"
    http://vjeko.com/
  • mdPartnerNLmdPartnerNL Member Posts: 802
    if you make it work in 2009 I can import it. And debug the c# on the server. That's ok too of course.

    About the .NET version, 2009 installs 3.5 I think, don't no yet about 2013.
  • VjekoVjeko Member Posts: 55
    if you make it work in 2009 I can import it. And debug the c# on the server. That's ok too of course.

    I'll make it work, I am working on it as I, well, type :) But you can debug it in C# even in 2013. That won't help, though. It shows much more complicated version of C#, with a lot of overhead. The original C# code is way simpler than this 2009, and in 2009 I had to pull a lot of tricks to make it work.
    About the .NET version, 2009 installs 3.5 I think, don't no yet about 2013.

    For NAV 2013 I am pretty sure it's compatible with 4.5, as I have been deploying some 4.5 assemblies, and it ran them without whining.
    (Co-)author of "Implementing Microsoft Dynamics NAV 2009"
    http://vjeko.com/
  • AdministratorAdministrator Member, Moderator, Administrator Posts: 2,500
    edited 2018-07-28
    Generic Web Services Client (v2) for Microsoft Dynamics NAV
    This simple codeunit allows you to consume any NAV page web service from C/AL without having to write any wrapper classes in .NET, or deploy any external dependencies. The only thing you need to have is the URL to the page web service.

    Update October 08, 2012
    ==================
    There are two files inside: one for NAV 2009 and one for 2013. I haven't fully tested the NAV 2009 version. It is a bit different because of differences between the .NET interoperability implementation in NAV, and the limitations of NAV 2009. I am not going to maintain the NAV 2009 version, and it is here just as an example of how to address the limitations, such as the lack of the GETDOTNETTYPE and the fact that simple data types translate directly to C/AL types.
    To run the NAV 2009 version correctly, you need the latest hotfix for NAV 2009.

    More details and code examples at: http://vjeko.com/web-services-black-belt-consuming-nav-web-services-using-pure-cal/

    https://mibuso.com/downloads/generic-web-services-client-v2-for-microsoft-dynamics-nav

    Discuss this download here.
  • dtomasdtomas Member Posts: 1
    ==================================================
    Problem solved
    ==================================================
    A group in page is required for working. :)
  • ariukaariuka Member Posts: 19
    Thank you very much to sharing valuable knowledge.
    This was the solution that i had been searching few weeks... :D
Sign In or Register to comment.