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
Saw you @ Techdays and was hoping that you would post the source
=D>
* LIKE *
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
http://vjeko.com/
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.
http://vjeko.com/
About the .NET version, 2009 installs 3.5 I think, don't no yet about 2013.
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.
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.
http://vjeko.com/
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.
Problem solved
==================================================
A group in page is required for working.
This was the solution that i had been searching few weeks...