I am new in Dynamics NAV 2009.I have a one requirement to post Payment voucher to NAV(from external application).Help me to write web-service for this purpose.any code unit or function available any one please help .
*This post is locked for comments
I think we're now at a happy medium. Tharanga is also right, making mistakes is the way of learning things. But better not on a live system ;) The requirement "invoke a posting routine via web service" is something for experienced developers, though. To implement this correctly, you need to know a few things about transactions (in NAV and in web services), error handling, concurrency and (in your example) how the payment voucher got into NAV. It is easier and better for the learning when you can do this together with an experienced developer. It can be frustrating, though :)
all the best
Jens
As Jens Glathe said this is a bit complex requirement. You need to know exactly what is your requirement and how you going to implement. There are many online blog posts and articles about web services and please do go through them before you start your development.
Plus if you are doing it for the first time, then do it in a test environment and once you feel safe and confident about your modification, then only transfer it to live server. ( but best way to learn is by doing yourself and making mistakes and don't worry, make mistakes.)
Hi saju,
this is a requirement that should be further discussed before implementing anything. Publishing CU12 doesn't get you anywhere near solving this task. Please contact an experienced NAV developer before you try to implement this. Actually it is dangerous to try implementing this without at least a few years of coding and using experience in ERP systems, IMO.
with best regards, and no offense
Jens
Just make a copy of "Gen. Jnl.-Post Line" codeunit and save as a new object, and then modify it so that not any user dialogs will popup during the execution.
Then go to 810 page (webservice) and insert a new record and select the type as "Codeunit" then give the codenuit ID and proper name to your service. Finally select publish.
You are done!
Sohail Ahmed
2
mmv
2
Amol Salvi
2