简体   繁体   English

使用Web服务的Microsoft Dynamics Nav Post

[英]Microsoft Dynamics Nav Post using Web Services

Im trying to Post on Navision using Navision Web Services (using C#) but so far looks impossible, especially since I dont own developer license. 我正在尝试使用Navision Web服务(使用C#)在Navision上发布消息,但到目前为止看起来似乎是不可能的,尤其是因为我没有开发人员许可证。 But there are some Codeunits like Codeunit 22,23 which are supposed to do the post of Item Journals but I cant seem to make them work and cant find good info about how to do that. 但是,有些代码单元(例如Codeunit 22,23)应该负责处理项目日记帐,但我似乎无法使其正常工作,也找不到有关如何执行此操作的良好信息。 Any little help will be much more than appreciated. 任何一点帮助将不胜感激。

If you were trying to publish those codeunits and try post like this then it is not good approach. 如果您试图发布这些代码单元并尝试像这样发布,那么这不是一个好方法。 And "cant seem to make them work" is just not enough to help you. 而且“无法使它们正常工作”不足以帮助您。

Most of customer licenses include free objects that can be created and modified w/o dev license. 大多数客户许可证都包含免费对象,可以免费使用dev许可证来创建和修改这些对象。 Those should have numbers starting from 50000 in object designer. 在对象设计器中,这些数字应从50000开始。 I would advise you to create and publish codeunit within this range and call it from your application as web service. 我建议您在此范围内创建和发布代码单元,然后从您的应用程序中将其作为Web服务调用。

In the codeunit you put creating and/or posting of journal lines. 在代码单元中,您可以创建和/或发布日记帐行。 Calling posting codeunits from there should be no problem. 从那里调用发布代码单元应该没有问题。 But choosing of proper codeunit to call heavily depends on what exactly you are trying to post and what results you expect. 但是,选择合适的代码单元进行大量调用取决于您要确切发布的内容以及期望的结果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM