WEB SERVICES. Service Tier Web Services Client Services ApplicationApplication Meta data provider Class Library Client Tier Microsoft SQL Server Form.

Slides:



Advertisements
Similar presentations
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Advertisements

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Preface Demo A Quick Thank You How Did We Do It?
Windows 8 (1) (2) (3) Windows 8 (1) (2) (3)
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Reprint Outstanding Transactions Report © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Feature: Purchase Requisitions - Requester © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
MIX 09 4/15/ :14 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Interactivity Navigating a data model Working with large quantities of data Entry Editing and adding data User feedback and validation Presentation.
Co- location Mass Market Managed Hosting ISV Hosting.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Windows 7 Training Microsoft Confidential. Windows ® 7 Compatibility Version Checking.
Multitenant Model Request/Response General Model.
Feature: Purchase Order Prepayments II © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Announcing Demo Announcing.
Feature: OLE Notes Migration Utility
Feature: Web Client Keyboard Shortcuts © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
Feature: SmartList Usability Enhancements © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
Session 1.
Built by Developers for Developers…. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
 Rico Mariani Architect Microsoft Corporation.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Assign an Item to Multiple Sites © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Connect with life Connect with life
Windows Azure Connect Name Title Microsoft Corporation.
NEXT: Overview – Sharing skills & code.
© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or.
Feature: Document Attachment –Replace OLE Notes © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
Microsoft Dynamics NAV 2009 Building Web Services.
Feature: Customer Combiner and Modifier © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
SQL Server SQL Azure Visual Studio“Quadrant” SQL Server Modeling Services Entity Framework ADO.NET“M”/EDM Data Services …
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
demo Instance AInstance B Read “7” Write “8”

customer.
demo © 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names.
demo Demo.
Feature: Void Historical/Open Transaction Updates © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
demo QueryForeign KeyInstance /sm:body()/x:Order/x:Delivery/y:TrackingId1Z
Feature: Suggested Item Enhancements – Analysis and Assignment © 2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and.
Windows Azure SQL Data Sync Name Title Microsoft Corporation.
projekt202 © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are.
The CLR CoreCLRCoreCLR © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product.
© 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks.
© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or.
Sr. Dir. – Systems Architecture Inlet Technologies.
Requirements Gathering Architectural Design DevelopmentUAT Visual Design Production Polish Concept Ideation Interaction Design.
19-20 November, 2008 | Copenhagen. NAV05 Ilana Smith Program Manager Microsoft Corporation.
public class Foo { Bar _bar; public Foo() { this._bar = new Bar(); } public class Foo { IBar _bar; public Foo(IBar barDependency) {

IoCompleteRequest (Irp);... p = NULL; …f(p);
demo User Signs Up Temporary Account is Created with Verification Link Sent User Clicks Link Account is Activated Login.Register(userName,
Microsoft Dynamics NAV 2018 – what’s new
Возможности Excel 2010, о которых следует знать
Title of Presentation 11/22/2018 3:34 PM
Title of Presentation 12/2/2018 3:48 PM
1/3/2019 1:21 PM © 2007 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
8/04/2019 9:13 PM © 2006 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Виктор Хаджийски Катедра “Металургия на желязото и металолеене”
Feature: Multi-user Editing Allowed in RMA Entry
PENSACOLA ENERGY WORK PLAN OCTOBER 10, 2016
Шитманов Дархан Қаражанұлы Тарих пәнінің
Title of Presentation 5/24/2019 1:26 PM
日本初公開!? Vista の新機能を実演 とっちゃん わんくま同盟 7/23/2019 9:09 AM
Presentation transcript:

WEB SERVICES

Service Tier Web Services Client Services ApplicationApplication Meta data provider Class Library Client Tier Microsoft SQL Server Form Builder Data Binder Role Tailored Client Database Tier High Level Architecture

WebServices - the simple story Pages and Codeunits can be exposed as webservices and used by any webservice consumer – Consumer uses Windows Authentication – Supports SSL DEMO

Strongly typed WS access Examples – Adding orders from a Web portal – Invoking Business Logic – Search functionality Using – Typically using specially designed Pages & Codeunits – Visual studio and C# – Running client side (Integration) – Running server side (webapp / process) DEMO

Customer_Service service = new Customer_Service(); service.UseDefaultCredentials = true;

Customer_Service service = new Customer_Service(); service.UseDefaultCredentials = true; Customer_Filter filter = new Customer_Filter(); filter.Field = Customer_Fields.Location_Code; filter.Criteria = "=YELLOW";

Customer_Service service = new Customer_Service(); service.UseDefaultCredentials = true; Customer_Filter filter = new Customer_Filter(); filter.Field = Customer_Fields.Location_Code; filter.Criteria = "=YELLOW"; Customer[] customers = service.ReadMultiple(new Customer_Filter[] { filter }, null, 0);

Customer_Service service = new Customer_Service(); service.UseDefaultCredentials = true; Customer_Filter filter = new Customer_Filter(); filter.Field = Customer_Fields.Location_Code; filter.Criteria = "=YELLOW"; Customer[] customers = service.ReadMultiple(new Customer_Filter[] { filter }, null, 0); foreach (Customer customer in customers) { this.listBox1.Items.Add(customer.No + " " + customer.Name + " " + customer.Location_Code); }

string bookmark = service.GetBookmark(customer.Key); System.Diagnostics.Process.Start("DynamicsNAV:////RunPage?Page=21 &mode=View&Bookmark=" + bookmark); AL-Code for getting a RTC compatible bookmark: bookmark := FORMAT(ref.RECORDID, 0, 10);

Loosely coupled WS access Examples – Edit in Excel Using – Generic Page access – Typically Client integration stuff Pitfalls – Limited metadata available for pages DEMO

XMLHTTP xhDisco = new XMLHTTP(); xhDisco.open("GET", SendURL, false, DomainUser, Password); xhDisco.send(null); if (xhDisco.status != 200) { MessageBox.Show(xhDisco.status.ToString() + ": " + xhDisco.statusText); return; } XmlDocument xdDisco = new XmlDocument(); xdDisco.LoadXml(xhDisco.responseText);

XMLHTTP xh4 = new XMLHTTP(); xh4.open("POST", SendURL, false, null, null); xh4.setRequestHeader("Content-Type", "text/xml; charset=utf-8"); xh4.setRequestHeader("SOAPAction", "ReadMultiple"); xh4.send(soapRequest); XmlDocument rs4 = new XmlDocument(); rs4.LoadXml(xh4.responseText);

Balance_LCY >10,000

300;EgAAAACJCDAxNDU0NTQ1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=19; ; New Concepts Furniture 705 West Peachtree Street …………

Do's and Don'ts Only expose WebServices to the internet through a “proxy” (either WebServices or a Portal App.) Use GUIALLOWED and ISSERVICETIER to control flow Create special pages/codeunits for your strongly typed WS access Microsoft Dynamics NAV 2009 WebServices should not be exposed directly to the internet Avoid long running transactions

GUIALLOWED vs. ISSERVICETIER Use GUIALLOWED in your code to determine whether your code allows user interaction – WS & NAS will have GUIALLOWED = false Use ISSERVICETIER in your code to determine whether your code is running managed code on the servicetier or interpreted AL Code on a client or NAS – WS & RTC will have ISSERVICETIER = true

Transactions Invoke WS method == One transaction – Commits are ignored – Locks are kept until WS method runs out of scope Structure your tables and your code – Don’t do multiple inserts in one go

SC create Nav binpath= “ ” displayname= “Nav Server ” type= own start= auto depend= NetTcpPortSharing SC create NavWS binpath= “ ” displayname= “Nav Server WS” type= share start= auto depend= NetTcpPortSharing/HTTP Service Tier Listener Web Service Listener Doesn’t work on XP

Performance WebService and Service Tier caches – Metadata – JIT Compiled C# code Caches are flushed when services are restarted Cold access to objects are very slow

C:\Documents and Settings\All Users\Application Data\Microsoft\Microsoft Dynamics NAV\60\Server DEMO

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.