I have to call function with some parameters in codeunit using NAV Web Service from Javacript.
Could you can help me to give me an example to do that? Thanks before.
I have search in internet and read Freddy's blog post, but I cannot find how to connect NAV Web Service From Javascript to Call Function with some Parameter in Codeunit. Freddy's blog post just mention how to read data from page that is already published (http://blogs.msdn.com/b/freddyk/archive/2010/01/21/connecting-to-nav-web-services-from-javascript.aspx).
Thanks for your link, but I want to connect from Javascript, not Java. If you have any idea or link, please let me know. Thanks again..
I think the basics will be same like when calling WS from NAV. You need to create correct SOAP request and send it. How the request looks like is easy to find using fiddler webdebugger and e.g. some sample application created in Visual Studio or by sending the request by some tool (e.g. WCFTestClient from Visual Studio). You can create the SOAP through XMLDom or through other libraries.
Thank you so much!
Fiddler web debugger is awesome and helps me a lot.. ^^
I using function from codeunit as using page.. I made a mistake about the urn that is case sensitive.. Thank you so much..
You are welcome! Do not forget - in most cases, you are not alone solving similar problem, thus you can expect that there will be tool which helps you, made by another guy solving similar problem before you... :-)
I have tried to add function in page Customer Card and table Customer. Then, I have published the page Customer Card. But, my new function is not available in web service of customer card page. Is it normal? Whether I have to create function only in codeunit to publish that function in web service? Thanks..
Answers
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
I have search in internet and read Freddy's blog post, but I cannot find how to connect NAV Web Service From Javascript to Call Function with some Parameter in Codeunit. Freddy's blog post just mention how to read data from page that is already published (http://blogs.msdn.com/b/freddyk/archive/2010/01/21/connecting-to-nav-web-services-from-javascript.aspx).
Thanks for your link, but I want to connect from Javascript, not Java. If you have any idea or link, please let me know. Thanks again..
Johanna
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Thank you so much!
Fiddler web debugger is awesome and helps me a lot.. ^^
I using function from codeunit as using page.. I made a mistake about the urn that is case sensitive.. Thank you so much..
Johanna
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Johanna
I have tried to add function in page Customer Card and table Customer. Then, I have published the page Customer Card. But, my new function is not available in web service of customer card page. Is it normal? Whether I have to create function only in codeunit to publish that function in web service? Thanks..
Johanna
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
Johanna