Doubt with NAV web services and external development

Franklin
Member Posts: 253
Good morning,
We are developing a process that involves the following:
An external warehouse to our customer sends a file via ftp. This file contains the serial numbers of the items of the purchase order. When the client receives the file will automatically be imported into NAV but i need register the order too.
My question is if I can add a function in the codeunit 81, publish this codeunit and access function with an external aplication to register the purchase/sales order? This solve me the problem.
We are developing a process that involves the following:
An external warehouse to our customer sends a file via ftp. This file contains the serial numbers of the items of the purchase order. When the client receives the file will automatically be imported into NAV but i need register the order too.
My question is if I can add a function in the codeunit 81, publish this codeunit and access function with an external aplication to register the purchase/sales order? This solve me the problem.
0
Comments
-
For external access like that using webservices is a great idea. I'm not sure if I would expose some of the core posting processes like Codeunit 81 or 80 as web services. I think it would be much more secure to build a custom codeunit that is exposed as a web service that you use to do some simple validation of the data being submitted to the web service AND then have your custom codeunit call whichever codeunits are necessary to generate and post orders.
However I would seriously think about the architecture of exposing anything that calls a posting routine to the outside world. As posting is moving an uposted document into ledgers and finalizing part of a transaction that is normally something that should be initiated by a user or a process that originates from inside an organization. It could be risky to expose a process that now allows an outside party to control when a transaction with financial implications occurs.0 -
Thx for your answer...
I have been trying to publish the WS but i have many troubles...
If you want you can help me here... viewtopic.php?f=32&t=430500
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions