CHAPTER 10: WEB SERVICES



Similar documents
CHAPTER 13: INTEGRATION OPTIONS

What's New: Developing Solutions for Microsoft Dynamics NAV 2009

Web Services API Developer Guide

MODULE 7: TECHNOLOGY OVERVIEW. Module Overview. Objectives

SharePoint Integration

CHAPTER 1: CLIENT/SERVER INTEGRATED DEVELOPMENT ENVIRONMENT (C/SIDE)

Upgrading a Microsoft Dynamics NAV 2009 R2 or Microsoft Dynamics NAV 2009 SP1 Database to Microsoft Dynamics NAV 2015

Implementing a WCF Service in the Real World

LOAD BALANCING 2X APPLICATIONSERVER XG SECURE CLIENT GATEWAYS THROUGH MICROSOFT NETWORK LOAD BALANCING

Configuring Jet Express for Microsoft Dynamics NAV 2013

CHAPTER 4: BUSINESS ANALYTICS

QUANTIFY INSTALLATION GUIDE

BusinessObjects Enterprise XI Release 2

Creating XML Report Web Services

The full setup includes the server itself, the server control panel, Firebird Database Server, and three sample applications with source code.

Walkthrough: Creating and Using an ASP.NET Web Service in Visual Web Developer

CHAPTER 9: DATAPORT AND XMLPORT CHANGES

How to test and debug an ASP.NET application

Integrating Siebel CRM with Microsoft SharePoint Server

Integrating with BarTender Integration Builder

Deploying Microsoft Operations Manager with the BIG-IP system and icontrol

Microsoft Dynamics TM NAV Installation & System Management: Application Server for Microsoft Dynamics NAV

Accessing Data with ADOBE FLEX 4.6

Building and Using Web Services With JDeveloper 11g

Configuring Jet Essentials for Microsoft Dynamics NAV 2013 and higher

Retail Deployment Guide. Microsoft Dynamics AX 2012 Feature Pack

How To Integrate SAP Business Data Into SharePoint 2010 Using Business Connectivity Services And LINQ to SAP

CHAPTER 23: USING ODBC

Configuring Network Load Balancing with Cerberus FTP Server

RoomWizard Synchronization Software Manual Installation Instructions

DiskPulse DISK CHANGE MONITOR

ENHANCE. The Style Sheet Tool for Microsoft Dynamics NAV. Microsoft Dynamics NAV 5.0. User s Guide

WhatsUp Gold v16.3 Installation and Configuration Guide

Oracle Service Bus Examples and Tutorials

How to consume a Domino Web Services from Visual Studio under Security

Composite C1 Load Balancing - Setup Guide

2012 Nolio Ltd. All rights reserved

Dynamic Decision-Making Web Services Using SAS Stored Processes and SAS Business Rules Manager

Microsoft Dynamics TM NAV Installation & System Management: Employee Portal for Microsoft Dynamics NAV

Overview of Web Services API

Bitrix Site Manager ASP.NET. Installation Guide

NETWRIX EVENT LOG MANAGER

Working with the ERP Integration Service of EMC Documentum Process Services for SAP

IBM Rational Rapid Developer Components & Web Services

ER/Studio 8.0 New Features Guide

Composite.Community.Newsletter - User Guide

MICROSOFT DYNAMICS NAV COURSE OUTLINE 1) MICROSOFT DYNAMICS NAV C/SIDE SOLUTION DEVELOPMENT. Module 1: Data and Process Model

CHAPTER 5: BUSINESS ANALYTICS

How To Use Blackberry Web Services On A Blackberry Device

Terms and Definitions for CMS Administrators, Architects, and Developers

This three-day instructor-led course provides students with the tools to extend Microsoft Dynamics CRM 4.0.

Microsoft Windows Storage Server 2003 R2

Application. 1.1 About This Tutorial Tutorial Requirements Provided Files

Specify the location of an HTML control stored in the application repository. See Using the XPath search method, page 2.

Tutorial: Building a Dojo Application using IBM Rational Application Developer Loan Payment Calculator

GE Measurement & Control. Remote Comms System. Installation and User Reference Guide

Using ilove SharePoint Web Services Workflow Action

How To Use Syntheticys User Management On A Pc Or Mac Or Macbook Powerbook (For Mac) On A Computer Or Mac (For Pc Or Pc) On Your Computer Or Ipa (For Ipa) On An Pc Or Ipad

Nexio Connectus Cluster Set Up with SQL Server Backend

IBM Operational Decision Manager Version 8 Release 5. Getting Started with Business Rules

NS DISCOVER 4.0 ADMINISTRATOR S GUIDE. July, Version 4.0

Getting Started Guide

TSM Studio Server User Guide

Configuring a Custom Load Evaluator Use the XenApp1 virtual machine, logged on as the XenApp\administrator user for this task.

IIS, FTP Server and Windows

DEVELOPING CONTRACT - DRIVEN WEB SERVICES USING JDEVELOPER. The purpose of this tutorial is to develop a java web service using a top-down approach.

Active Directory Management. Agent Deployment Guide

Microsoft Dynamics NAV 2013 R2 Release Notes Follow-up

Extensibility. vcloud Automation Center 6.0 EN

Basic Exchange Setup Guide

Performance Testing for Ajax Applications

Learn how to create web enabled (browser) forms in InfoPath 2013 and publish them in SharePoint InfoPath 2013 Web Enabled (Browser) forms

BUILDER 3.0 Installation Guide with Microsoft SQL Server 2005 Express Edition January 2008

Logi Ad Hoc Reporting Configuration for Load Balancing (Sticky Sessions)

ThirtySix Software WRITE ONCE. APPROVE ONCE. USE EVERYWHERE. SMARTDOCS SHAREPOINT CONFIGURATION GUIDE THIRTYSIX SOFTWARE

DEPLOYMENT GUIDE Version 2.1. Deploying F5 with Microsoft SharePoint 2010

CHAPTER 11: DOCUMENT ARCHIVING

LANDESK Service Desk. Desktop Manager

NovaBACKUP xsp Version 15.0 Upgrade Guide

This module explains fundamental aspects of Microsoft Dynamics NAV Development Environment.

Use the below instructions to configure your wireless settings to connect to the secure wireless network using Microsoft Windows Vista/7.

HYPERION SYSTEM 9 N-TIER INSTALLATION GUIDE MASTER DATA MANAGEMENT RELEASE 9.2

Getting to Know the SQL Server Management Studio

Spectrum Technology Platform. Version 9.0. Spectrum Spatial Administration Guide

OSF INTEGRATOR for. Integration Guide

Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide

Event Manager. LANDesk Service Desk

Using SQL Server Management Studio

EVALUATION. WA1844 WebSphere Process Server 7.0 Programming Using WebSphere Integration COPY. Developer

Using Application Insights to Monitor your Applications

Building an Agile PLM Web Application with JDeveloper and Agile 93 Web Services

ibolt V3.2 Release Notes

CA Nimsoft Service Desk

Microsoft Dynamics GP SQL Server Reporting Services Guide

Getting Started Guide

Cache Configuration Reference

Endpoint Security Console. Version 3.0 User Guide

Cloud Services ADM. Agent Deployment Guide

Tenrox and Microsoft Dynamics CRM Integration Guide

Transcription:

Chapter 10: Web Services CHAPTER 10: WEB SERVICES Objectives Introduction The objectives are: Provide an overview on how Microsoft Dynamics NAV supports Web services. Discuss historical integration options, Web services benefits and ideas. Create a codeunit Web service, expose a page and a codeunit Web service and consume them from an external application. Web services are a standardized way for independent software systems to communicate with one another over standard Internet protocols. Web services architecture is designed for dynamic program-to-program interaction. Many kinds of distributed systems can be implemented in Web services architecture. Examples of distributed systems include synchronous and asynchronous messaging systems, distributed computational clusters, mobilenetworked systems, grid systems, and peer-to-peer environments. The broad spectrum of requirements for program-to-program interactions means that the protocols that are used by Web services are more flexible than Web protocols. However, just as the World Wide Web, Web services also rely on a few specific protocols, such as SOAP. Microsoft Dynamics NAV 2009 supports Web services, which makes it easy to integrate Microsoft Dynamics NAV with other systems. This is possible with the introduction of Microsoft Dynamics NAV Server. 10-1

What s New for Microsoft Dynamics NAV 2009 Installation and Development Web Services Overview Web services are designed to facilitate the highly dynamic data interchange that is required in business transactions. Web services, as standardized integration technologies, bring value to businesses by breaking down data silos that are created by proprietary integration options. These proprietary integration technologies make it difficult to obtain information in and out of the different systems. Web services are described by using machine-readable metadata, which provide a robust development and operational environment. Web service metadata serves several purposes. The metadata is used to describe the message interchange formats that a Web service supports, and the valid message exchange patterns of a service. Metadata is also used to describe the capabilities and requirements of a service. Web Services Description Language (WSDL), which is an XML-based language for defining Web services, is used to express the interchange formats and message exchange patterns of the Web services Most major software development environments, such as Microsoft Visual Studio 2005, can be used to build applications that use Web services. Moreover, because Web services are XML based, Web services can be built across platforms and programming languages. Web Services Architecture The Web service integration with Microsoft Dynamics NAV is facilitated through Web service enabled codeunits and pages. External systems read and write data on pages and call codeunits as defined by the common Web service protocols, with correct authentication and authorization. The Web service capabilities in Microsoft Dynamics NAV help customers reap the benefits of a service-oriented architecture (SOA). 10-2

Chapter 10: Web Services Microsoft Dynamics NAV Web services are useful to customers and partners who want to use business logic or use a standard interface to access data from outside Microsoft Dynamics NAV. FIGURE 10.1 MICROSOFT DYNAMICS NAV 2009 THREE-TIER ARCHITECTURE Microsoft Dynamics NAV Web Services Support There are several simple types of Web services that can be published by Microsoft Dynamics NAV. The types of Web services correspond to the degree of complexity required in the Web service interface. All Web services can run C/AL code and validation triggers. The simplest Web service type is developed by using the page object. By using the page object, Microsoft Dynamics NAV constructs a default Web service that has a fixed set of methods. Generally, it corresponds to general data access, such as get and set individual values or retrieve and update lists of values. Another Web service type involves including codeunits and the functions from those codeunits in the Web service. The last type of Web service includes the ability to pass complex data types by using an XMLport object as a parameter in a codeunit function. How Microsoft Dynamics NAV integrates Web services saves the complexity of manually setting up Web service frameworks, such as managing the WSDL descriptions. To publish any type of Microsoft Dynamics NAV Web service (page or codeunit), add it to the Web Service table. 10-3

What s New for Microsoft Dynamics NAV 2009 Installation and Development Pages and codeunits that are added to the Web Service table in Microsoft Dynamics NAV are immediately published and available for Web service requests over the network. Consumers of these Web services, which are systems integrating with Microsoft Dynamics NAV, only have to know the network name (or address) of the computer that is running Microsoft Dynamics NAV Server and the names given to the individual pages and codeunits. For example, with the following configurations: Computer name that runs Microsoft Dynamics NAV Service: NAV_Server1 Web service port: 85 Microsoft Dynamics NAV Server instance: DynamicsNAV Company Name: CRONUS International Ltd. The published page Web service: MyCustomer Then the MyCustomer Web service is available at the following URL: http://nav_server1:85/dynamicsnav/ws/cronus_international_l td/page/mycustomer Microsoft Dynamics NAV manages Web service requests exactly like it handles requests from end-users. User rights authorization and validation, input data validation, business logic invocation, and concurrency control are all managed in the same manner as requests from a Microsoft Dynamics NAV client. This guarantees that the integrity of the Microsoft Dynamics NAV data is not compromised by using Web services. It also means that code that validates data or invokes business logic for systems that use the Web services that are provided by Microsoft Dynamics NAV does not have to be replicated. When writing code for Web services, avoid using any end-user confirmation dialog boxes or message boxes. The code for Web services cannot interact with the client that called the code. It cannot respond to a dialog box or any other client interaction requests. Running code with client interaction causes an exception to be thrown. The exception can be caught and handled, but the Web service task will not be completed. This operating system function is used to check whether the C/AL code is allowed to show any information on the screen. When the code is run from Web services, GUIALLOWED always returns FALSE. This is the same with when the code is run in Microsoft Dynamics NAV Application Server. 10-4

Chapter 10: Web Services Web Services Opportunities Integration with other systems and communicating with different entities outside Microsoft Dynamics NAV, is always a challenge in any implementation scenarios. In most cases, customers have different systems that are running together and not only Microsoft Dynamics NAV. Not only that, they may have to exchange data with entities outside their organization, which may use a different system or even a different platform and operating systems. Historical Integration Option Historically, Microsoft Dynamics NAV offers some integration possibilities by using the following technologies: C/Front C/ODBC OCX Automation Navision Application Server (NAS) These integration options have their own pros and cons, and choosing the best technology, sometimes depends on a case by case basis. Microsoft Dynamics NAV 2009 offers Web services support as a new method of interacting programmatically with the system. It can be accessed over a network and enables execution on a remote system. It stands as a widely-used, industry standard, which means it is used by other systems and products across the industry. Overall, Microsoft Dynamics NAV Web services support offers the best way to integrate across other systems. Web Services Benefits Web services support in Microsoft Dynamics NAV offers great value and benefits over its predecessors, these are as follows: Standard integration method, which takes advantage of developer skill sets. This in turn increases development speed and reduces the cost of implementation. Increase return on Microsoft Dynamics NAV investment with the integration of data and business logic. Codes have to be written one time and do not have to be redeveloped as the same codes are run whenever using Web services or using Microsoft Dynamics NAV Client. 10-5

What s New for Microsoft Dynamics NAV 2009 Installation and Development Consistent integration point, which reduces management overhead, because of the same security, validation and business logic as using Web services and Microsoft Dynamics NAV Client. It also benefits from all other advantages of Web services as an industry standard. Suitable Candidates for Web Services Web services are suited for communication across platforms and programming language. With Microsoft Dynamics NAV 2009, it is easy to integrate with other systems and benefit from the flexibility that Web services offer. The following are candidates for Web services: Solutions that have to execute business logic or read data from Microsoft Dynamics NAV. Solutions that write data to Microsoft Dynamics NAV and use the system to validate the data by using the existing business logic. Solutions that extend Microsoft Dynamics NAV with additional information such as customer information, exchange rates, or product information and have the extension that can be accessed from other systems. The following are examples of several scenarios that are suited to Web services implementation: When a new order is created in the system, a Web service communicates with the shipping companies directly to make sure transportation of the order items, checking prices and availability. Integration with exchange rates, ensuring that the system is continuously updated with the latest exchange rates, which provides precise calculations of data. Integration with a Web service that retrieves the latest address information when new customers are added to the system to make sure accuracy in data. Integration with production planning, CRM, data warehouses, other ERP systems, specialized budgeting, planning or reporting systems, mobile solutions and many more. Demonstration: Create, Expose and Consume Web Services Microsoft Dynamics NAV supports page objects, and codeunits, and XML port objects that are passed as parameters in a codeunit function to be published as Web services. 10-6

Chapter 10: Web Services An example of the usage of the Web services in Microsoft Dynamics NAV is publishing a Web service that lists all customers and has that Web service immediately available for authorized requests over the network. Web services allow for easy communication and data exchange in a secured environment. The following demonstration shows how to: Create a simple codeunit. Register the codeunit Web service and a page Web service and publish them. Create console applications and consume these two Web services. Create a Codeunit Web Service The following steps show how to create a simple codeunit, with a function to capitalize lowercase input string. In Microsoft Dynamics NAV Classic Client: 1. Click Tools > Object Designer. The Object Designer opens. 2. Click the Codeunit button to open the Codeunit list. 3. Click New. The C/AL Editor opens. 4. Click View > C/AL Globals. The C/AL Global window opens. 5. Click the Functions tab, and type the following: o Name: Capitalize 6. Click the Locals button. TheC/AL Locals window opens. 7. In the Parameters tab, type the following: o Name: InputString o DataType: Text o Length: 250 8. Click the Return Value tab, and type the following: o Name: OutputString o ReturnType: Text o Length: 250 9. Close the C/AL Locals window and then close the C/AL Globals window. 10. In the Capitalize function, type the following: OutputString := UPPERCASE(InputString); 11. Save the codeunit by clicking File > Save As. The Save As dialog box opens. 10-7

What s New for Microsoft Dynamics NAV 2009 Installation and Development 12. Type 123456701 in the ID and MyCodeunit in the Name and then click OK. Now, the codeunit looks like the following: FIGURE 10.2 MYCODEUNIT CODEUNIT 13. Close the C/AL Editor. Expose the Web Services After the codeunit is created and saved, register it in the Web Services form and select the Published check box. The following steps show how to register Web services: In the Object Designer: 1. Click the Form button to open the Form list. 2. Select form 810, Web Services and then click Run. The Web Services form opens. 3. Type the following: Object Type Object ID Service Name Codeunit 123456701 DemoCU Page 21 Customer The first line registers the codeunit Web service that is created in the previous steps. The second line registers a page Web service, in this case the Customer page. 10-8

Chapter 10: Web Services 4. Select the Published check box on both lines to publish the Web services. Now, the Web Services form looks like the following: FIGURE 10.3 THE WEB SERVICES FORM When the Web service is marked as published in the Web Services form, it is immediately available for requests over the network. 5. Close the Web Services form. Checking the WSDL Before continuing, it is recommended to check that the Web services that previously published are available. The following steps show how to browse to the WSDL document to make sure that the Web services are available. 1. Start Internet Explorer. 2. In the Address bar, type the following: http://localhost:85/dynamicsnav/ws/cronus_international_ltd /Services NOTE: This address is based on the name of the computer that is running the Microsoft Dynamics NAV Service and the company that is used. The company name is casesensitive. In this case, localhost is used instead of the computer name. 10-9

What s New for Microsoft Dynamics NAV 2009 Installation and Development 3. The page lists the Web services registered and published in the Expose The Web Service section. FIGURE 10.4 THE WEB SERVICES LISTED IN INTERNET EXPLORER 4. Close Internet Explorer. Create a Console Application to Consume the Codeunit Web Service The codeunit Web service is available. The following steps show how to create a simple console application in Visual Studio to consume the codeunit Web service. These steps start with creating a new project in Visual Studio and then adding a Web Reference for the Web services published from Microsoft Dynamics NAV. 1. Open Visual Studio. 2. Click File > New, and then click Project. The New Project window opens. 3. Expand the Visual C# node, and select Console Application. 4. Type the following: o Name: UseDemoCU 5. Click OK. The UseDemoCU project initiates with default files and references. Add Codeunit Web Service as a Web Reference The next step is to add the published Web service as a Web reference into the project. 10-10

Chapter 10: Web Services In Visual Studio: 1. In the Solution Explorer, right-click the References node in the project, and then click Add Web Reference. The Add Web Reference window opens. 2. Type the following in the URL bar: http://localhost:85/dynamicsnav/ws/cronus_international_ltd /Services NOTE: This address is the same as the address that is used when checking the WSDL by using Internet Explorer. 3. Click GO. The DemoCU service is displayed together with other services that are available. FIGURE 10.5 THE ADD WEB REFERENCE WINDOW 10-11

What s New for Microsoft Dynamics NAV 2009 Installation and Development 4. Click View Service for the DemoCU service and then click Add Reference. Type the Code FIGURE 10.6 THE DEMOCU WEB SERVICE DESCRIPTION The following steps show how to create a code to consume the codeunit Web service. In Visual Studio: 1. On the Program.cs tab, type the following: using System; using System.Collections.Generic; using System.Text; namespace UseDemoCU { using localhost; // using the web reference class Program { static void Main(string[] args) { 10-12

Chapter 10: Web Services // Create a new instance of the service. DemoCU ws = new DemoCU(); // Use default credentials for authenticating // against Microsoft Dynamics NAV. ws.usedefaultcredentials = true; // Declare variables to work with. string InputString =""; string OutputString =""; Console.WriteLine("Input lowercase sentence, end by [ENTER]"); InputString = Console.ReadLine(); // Call the Microsoft Dynamics NAV codeunit Web service. try { OutputString = ws.capitalize(inputstring); } catch (Exception e) { Console.WriteLine(e.Message.ToString()); } // Write output to the screen. Console.WriteLine("Result: {0}", OutputString); // Keep the console window up until you press ENTER. Console.ReadLine(); } } } 10-13

What s New for Microsoft Dynamics NAV 2009 Installation and Development 2. Click File > Save All to save all the changes in the project. FIGURE 10.7 THE CODE IN VISUAL STUDIO Consume the Codeunit Web Service The following steps show how to test the console application and consume the codeunit Web service: In Visual Studio: 1. Press F5 to run the application in debug mode. The console window opens. 2. Type the following: o this is a lowercase sentence 10-14

Chapter 10: Web Services 3. Press ENTER. Now, the console application looks like the following: FIGURE 10.8 THE CONSOLE APPLICATION RESULT The input string this is a lowercase sentence is capitalized by using the codeunit Web service that is running on Microsoft Dynamics NAV Service. This results in the output string THIS IS A LOWERCASE SENTENCE. 4. Press ENTER to close the console window. Create Console Application to Consume the Page Web Service In the Expose the Web Service section, two Web services are exposed and published. The previous sections show how to create a console application to consume the first Web service, which is the codeunit Web service. The next section shows how to create a console application to consume the second Web service, which is the page Web service. In Visual Studio: 1. Click File > New, and then click Project. The New Project window opens. 2. Expand the Visual C# node, and select Console Application. 3. Type the following: o Name: UseDemoPage 4. Click OK. The UseDemoPage project initiates with default files and references. 10-15

What s New for Microsoft Dynamics NAV 2009 Installation and Development Add Page Web Service as a Web Reference The next step is to add the published Web service as a Web reference into the project. In Visual Studio: 1. Repeat steps 1 to 3 in the Add Codeunit Web Service as a Web Reference section. 2. Instead of using the DemoCU service, click View Service for the Customer service and then click Add Reference. FIGURE 10.9 THE CUSTOMER WEB SERVICE DESCRIPTION Type the Code The following steps show how to create a code to consume the codeunit Web service. 10-16

Chapter 10: Web Services In Visual Studio: 1. On the Program.cs tab, type the following: using System; using System.Collections.Generic; using System.Text; namespace UseDemoPage { // import newly generated Web service proxy using localhost; class Program { static void Main(string[] args) { //create instance of service and setting credentials Customer_Service service = new Customer_Service(); service.usedefaultcredentials = true; //create instance of customer Customer cust = new Customer(); cust.name ="Customer New"; //insert customer service.insert(ref cust); PrintCustomer(cust); Msg("The program inserted a new customer, press [ENTER] to continue"); Console.ReadLine(); //create filter for searching for customers List<Customer_Filter> filter = new List<Customer_Filter>(); Customer_Filter namefilter = new Customer_Filter(); namefilter.field = Customer_Fields.Name; namefilter.criteria ="C*"; filter.add(namefilter); Msg("List before modification"); PrintCustomerList(service, filter); Console.ReadLine(); //modify customer cust.name = cust.name + " and Modified"; service.modify(ref cust); PrintCustomer(cust); Msg("The program modified the new customer name, press [ENTER] to continue"); Console.ReadLine(); 10-17

What s New for Microsoft Dynamics NAV 2009 Installation and Development Msg("List after modification"); PrintCustomerList(service, filter); Console.ReadLine(); //delete customer service.delete(cust.key); Msg("List after deletion"); PrintCustomerList(service, filter); Console.ReadLine(); Msg("Press [ENTER] to exit program!"); Console.ReadLine(); } static void PrintCustomerList(Customer_Service service, List<Customer_Filter> filter) { Msg("Printing Customer List"); //conduct the actual search Customer[] list = service.find(filter.toarray(), null, 100); foreach (Customer c in list) { PrintCustomer(c); } Msg("End of List, press [ENTER] to continue"); } static void PrintCustomer(Customer c) { Console.WriteLine("No: {0} Name: {1}", c.no, c.name); } static void Msg(string msg) { Console.WriteLine(msg); } } } 10-18

Chapter 10: Web Services 2. Click File > Save All to save all the changes in the project. FIGURE 10.10 THE CODE IN VISUAL STUDIO NOTE: The code for this demonstration is written based on Microsoft Dynamics NAV 2009 CTP 3 version. Moving forward, the method names for page based Web service are renamed to suit Create, Read, Update and Delete concept. Refer to Appendix I: Web Services Methods for more information. 10-19

What s New for Microsoft Dynamics NAV 2009 Installation and Development Consume the Page Web Service The following steps show how to test the console application and consume the page Web service: In Visual Studio: 1. Press F5 to run the application in debug mode. The console window opens. The application inserts a new customer named Customer New with the default Customer No. FIGURE 10.11 INSERT A NEW CUSTOMER 2. Press ENTER to continue. 10-20

Chapter 10: Web Services The application prints a list of customers, which name starts with the letter C. FIGURE 10.12 CUSTOMER LIST WHICH NAME STARTS WITH THE LETTER C 3. Press ENTER to continue. The application modifies the new customer name to Customer New and Modified. FIGURE 10.13 MODIFY THE NEW CUSTOMER NAME 4. Press ENTER to continue. 10-21

What s New for Microsoft Dynamics NAV 2009 Installation and Development The application prints a customer list, which name starts with the letter C, after modification. FIGURE 10.14 CUSTOMER LIST AFTER MODIFICATION 5. Press ENTER to continue. The application deletes the new customer and prints a customer list, which name starts with the letter C, after deletion. FIGURE 10.15 CUSTOMER LIST AFTER DELETION 6. Press ENTER to close the console window. 10-22

Chapter 10: Web Services Summary This chapter discussed: Microsoft Dynamics NAV 2009's new integration option by using Web services. Web services support in Microsoft Dynamics NAV 2009. The opportunities using Web services as an integration option compared to historical options, the benefits of Web services and the suitable candidates for Web services implementation. The chapter also demonstrated how to use create a codeunit, expose and publish a page and a codeunit Web service, and create console applications to consume the published Web services. 10-23

What s New for Microsoft Dynamics NAV 2009 Installation and Development Quick Interaction: Lessons Learned Take a moment and write down three key points you have learned from this chapter: 1. 2. 3. 10-24