- Building ERP Solutions with Microsoft Dynamics NAV
- Stefano Demiliani
- 211字
- 2021-07-09 19:01:58
Creating the NAV web service
The scope of our application is to read NAV sales orders and create new ones by invoking the NAV business logic. In order to do that, we need to publish the NAV Sales Order page as web service and use it.
Let's learn how to create a NAV web service by performing the following steps:
- Open the Microsoft Dynamics NAV RoleTailored Client and go to the Web Services page.
- Create a new record with these parameters:
- Object Type:
Page
- Object ID:
42
(Sales Order page) - Service Name:
SalesOrder
(a friendly name for our web service) - Published:
TRUE
The results are shown in the following screenshot:
- Object Type:
- When published, NAV immediately gives you the service URL (SOAP and OData). You can test if the web service is correctly working by accessing it directly via the browser (using, for example, the SOAP URL):
- If the browser prompts you to insert credentials for the service, access it by using a correctly configured user in NAV.
- Remember that in order to access the published web services, the service ports (
7047
for SOAP web services and7048
for OData web services if you use the default ones) must be opened to the outside by creating correct rules on the Windows Firewall:
推薦閱讀
- Mastering Microsoft Forefront UAG 2010 Customization
- Managing IaaS and DBaaS Clouds with Oracle Enterprise Manager Cloud Control 12c
- 中國新股民必讀手冊(2015年最新版)
- 汪博士詳解PMP?模擬題(第4版)
- 基于價值增值的治理導向型內部審計研究
- 金融保險集團內部審計創新與實踐
- 審計綜合模擬實訓
- Metabase Up and Running
- 財務審計實務指南
- 審計實務案例與實訓教程
- 財務建模與綜合估值:數據研磨、模型校準、動態估值
- 新編統計學
- Oracle E-Business Suite Financials R12:A Functionality Guide
- INSTANT IBM Lotus Notes 8.5.3 How-to
- 政府采購評審專家工作指南