1. Can we expose singleinstance codeunits as webservices in NAV 2009 SP1/R2?
and more importanly, can codeunits which are exposed as webservices have automation objects with the property "WithEvents"=YES?
2. Can the code on the "'Navision Communication Component version 2'.CommunicationComponent" EVENT be triggered from a webservice? The aim is to use MSMQ from webservice :thumbsup: rather than NAS :thumbsdown: .
If the answer to (1.) and (2.) is Yes then this approach gets rid of the NAS and reuses exisiting CAL code using MSMQ and XMPLORTS we use in Integrating NAV with any 3rd party Applications.
3. If we have the Budget(time,money,effort) we can rewrite the Code in C#.NET using the Pages/Extended Codeunits/Codeunits with parameters as XMLPORTS and simple types(int,text)
There are 3 things about that object that I would like to point out that makes that object unsuited for web service as it is written.
1.) It has method signatures that cannot be published as a web service; remember that the only types available to you on the codeunit if you intend to publish it as a service: are the simple types (text, int…) and XMLPorts.
Comments
We'll try to blog our way through Directions.
A shame you are not coming though. I think it would have been fun seeing you after few beers :whistle:
RIS Plus, LLC
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
I am looking forward Waldo's Blog Article about that...
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
You can count on me
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog
1. Can we expose singleinstance codeunits as webservices in NAV 2009 SP1/R2?
and more importanly, can codeunits which are exposed as webservices have automation objects with the property "WithEvents"=YES?
2. Can the code on the "'Navision Communication Component version 2'.CommunicationComponent" EVENT be triggered from a webservice? The aim is to use MSMQ from webservice :thumbsup: rather than NAS :thumbsdown: .
If the answer to (1.) and (2.) is Yes then this approach gets rid of the NAS and reuses exisiting CAL code using MSMQ and XMPLORTS we use in Integrating NAV with any 3rd party Applications.
3. If we have the Budget(time,money,effort) we can rewrite the Code in C#.NET using the Pages/Extended Codeunits/Codeunits with parameters as XMLPORTS and simple types(int,text)
Thanks Kris :thumbsup: