简体   繁体   中英

ASP.NET & Microsoft Dynamics NAV 2009 how get data?

I want insert, update and delete customer's table in Microsoft Dynamics NAV 2009 helping ASP.NET, C#; Passing by Microsoft Dynamics NAV Server; Have anybody C# code about this?

In the Dynamics NAV Developer manual you'll find a chapter on how to work with web services. This also includes some examples on how to do your CRUD operations.

You need to add a Web Reference and point it to the Web Services for NAV 2009.

Firstly, if you search "Web Services" in the top right, you need to expose the "Customer Card" page (Page 21).

Then in C# you need a web reference to connect to the SOAP web service.

Remember that if you UPDATE, you need to READ first. When you call the UPDATE, there's a "key" field. This field is passed in the UPDATE method call to ensure that you don't overwrite data if it is updated by another user.

Here's a good guide on adding a Web Reference. Connecting to Nav with Web Reference

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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