DEV332 Programming for the Middle Tier in Visual Basic.NET Billy Hollis Author / Consultant.

Slides:



Advertisements
Similar presentations
Database Architectures and the Web
Advertisements

DEV351 ADO.NET Performance Pablo Castro Program Manager – ADO.NET Team Microsoft Corporation.
WEB401 Security Practices for Web Services (Part 2) Keith Ballinger Program Manager XML Messaging Microsoft Corporation.
EBZ330 Building an End-to-End Enterprise Application Integration Solution with Microsoft® BizTalk® Server 2004 Scott Woodgate Jupiter Product Planner.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
ESupport Shifting Customers to the Internet for Support Published: January 2002.
DEV450 Visual Studio: Best Practices For Debugging Managed Applications Habib Heydarian Scott Nonnenberg Program Managers Microsoft Corporation.
1 Building Distributed Asynchronous Applications With SQL Service Broker Gerald Hinson, Roger Wolter DAT303 Dev Lead Microsoft Corporation.
Enterprise Reporting with Reporting Services SQL Server 2005 Donald Farmer Group Program Manager Microsoft Corporation.
DAT304 Leveraging XML and HTTP with Sql Server Irwin Dolobowsky Program Manager Webdata Group.
DBA230 Introducing SQL Server 2000 Reporting Services Jason Carlson Product Unit Manager SQL Server Microsoft Corporation.
DEV317 Integrating Extensible Business Graphics into Enterprise Applications using Visio 2003 Mai-lan Tomsen Bukovec Program Manager.
OFC 322 Building Office Research Web Services: Exposing Corporate Data Through Office Brian Jones Program Manager Authoring Services Martin Sawicki Lead.
DEV334 Creating Application Starting Points & Sharing Best Practices with Enterprise Templates Marc Gusmano Director of Emerging Technologies The Information.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved Bookstore Web Application Introducing Visual Web Developer 2008 Express and the.
CON 307 Developing Manageable WCF Services Chris Peiris | Avanade Rory Primrose | Avanade
OFC304 Excel 2003 Overview: XML Support Joseph Chirilov Program Manager.
DEV290 Building Office Solutions with Visual Studio Eric Carter Lead Developer Developer Platform & Evangelism Microsoft Corporation.
 Wallace B. McClure  Scalable Development, Inc. Scalable Development, Inc. Building systems today that perform tomorrow. Designing & Building Windows.
Tom Castiglia Hershey Technologies
DAT305 Boost Your Data-Driven Application Development Using SQL Server Centric.NET Code Generator Pascal Belaud Microsoft France.
OFC 303 Advanced Word XML: Customer-Defined Schemas Brian Jones Program Manager Authoring Services.
Slide 2 The Microsoft Office Project 2003 Software Development Kit Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation Uma.
DEV325 Deploying Visual Studio.NET Applications Billy Hollis Author / Consultant.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
OFC290 Information Rights Management in Microsoft Office 2003 Lauren Antonoff Group Program Manager.
DEV339 Best Practices for Debugging Visual Studio.NET Applications Keith Pleas Architect, Guided Design
OFC 308 Advanced Word XML: The WordML Schema and Bringing Everything Together Brian Jones Program Manager Authoring Services.
WEB390 Ouch! Common XML Web services headaches (and possible solutions) Christian Weyer Microsoft MSDN Regional Director
Slide 1.NET Development for Project 2003 Samples from the Project 2003 SDK Jim Corbin Programmer Writer Office Developer Documentation Microsoft Corporation.
DEV337 Modeling Distributed Enterprise Applications Using UML in Visual Studio.NET David Keogh Program Manager Visual Studio Enterprise Tools.
10 – 12 APRIL 2005 Riyadh, Saudi Arabia. Visual Studio 2005 : New Features for the Web Services Developer Malek Kemmou CEO Arrabeta Consulting Microsoft.
DEV384 COM+ Lives : New Features in Enterprise Services Included in Windows Server 2003 Catherine Heller Senior Consultant Microsoft Spain.
DEV333 Instrumenting Applications for Manageability with the Enterprise Instrumentation Framework David Keogh Program Manager Visual Studio Enterprise.
EBZ319 Building Enterprise Web Sites Using MCMS 2002 Daniel Kogan Program Manager CMS Group Microsoft Corporation Pat Miller Developer CMS Group Microsoft.
MBL206 A First Look at the Microsoft Location Server (MLS) Steve Lombardi Technical Product Manager MapPoint Business Unit Microsoft Corporation.
EBZ 321 Extending CMS 2002 Publishing Processes Scott Fynn Microsoft Consulting Services National Practices.
OFC291 Microsoft® Office Word XML (part 1 of 3): Introduction Martin Sawicki Lead Program Manager.
MBL401.Net Compact Framework: Data Access Best Practices Paul Foster Mobile solutions architect.
DEV303 ASP.NET: Leveraging Visual Studio.NET For Web Projects Tony Goodhew Product Manager Microsoft Corp.
DAT 332 SQL Server 2000 Data Transformation Services (DTS) Best Practices Euan Garden Product Unit Manager SQL Server Development Microsoft Corporation.
DEV330 Visual Studio.NET IDE Tips and Tricks Billy Hollis Author / consultant.
DEP331 Migrating to Windows XP Mike Coleman Lead Product Manager, Windows XP Microsoft Corporation.
Dev 328.NET & J2EE Strategies for Interoperability David Aiken Lead Enterprise Architect.
MBL490 Deploying Applications to Smartphone and Microsoft® Powered Pocket PC Marcus Perryman Consultant.
EBIZ327 InfoPath and BizTalk Server 2004 Scott Woodgate Jupiter Product Planner.
Web Services Error Handling and Debugging. Agenda Simple SOAP faults Advanced SOAP faults SOAP headers and faults Error handling From a Service Perspective.
DEV396 Windows Forms: No Touch Deployment Tips and Tricks Jamie Cool Program Manager.NET Client Microsoft Corporation.
MSG331 Exchange Server 2000/2003 Software Development Kit Susan Hill Lead Programmer Writer Microsoft Corporation.
DAT300 SQL Server Notification Services: Application Development Ken Henderson Technical Lead, SQL Server Support Microsoft Corporation
MBL 305 ASP.NET Mobile Controls: Best Practices Gökşin Bakir CSA Yage Ltd. Microsoft Regional Director.
DEV395 No Touch Deployment for Windows Forms Jamie Cool Program Manager.NET Client Microsoft Corporation.
DBA331 Managing a Microsoft SQL Server 2000 Reporting Services Implementation Brian Welcker Group Program Manager SQL Server Microsoft Corporation.
EBIZ302 Jupiter Business Process Automation and Web Services David Fong Program Manager.
DEV386 Best Practices for.NET Smart Clients and Web Services Development Marc Ghys & Bart Debeuckelaere.NET architects, Euricom.
Configuring and Deploying Web Applications Lesson 7.
DAT200 Microsoft® ADO.NET for ADO Classic Developers: Introducing ADO.NET Jackie Goldstein Renaissance Computer Systems
MSG 334 Creating Exchange Administrative Scripting for the Non-Programmer Susan Hill Lead Programmer Writer Microsoft Corporation.
EBIZ312 Connecting Host Systems to Microsoft Technologies Paul Larsen Aaron Grady Microsoft Corporation.
OFC320 Building EPM Solutions with Microsoft Project Server Ted Dinklocker Program Manager Microsoft Corp.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED INTERSTAGE BPM ARCHITECTURE BPMS.
DAT 390 Advanced ADO.NET Programming Techniques Jackie Goldstein Renaissance Computer Systems
6.2 XML Web Services Vinod Unny Enterprise InfoTech Microsoft Regional Director, North India.
Introducing SQL Server 2000 Reporting Services
Introduction to ASP.NET 2.0
Chris Menegay Sr. Consultant TECHSYS Business Solutions
Visual Studio 2005 Tools For Office: Creating A Multi-tier Application
Service Template Creation from the Ground Up
Introduction to ASP.NET Parts 1 & 2
Contexualized Data In Document Authoring
Presentation transcript:

DEV332 Programming for the Middle Tier in Visual Basic.NET Billy Hollis Author / Consultant

Agenda Typical architectural elements in the middle tier Web Services basics (briefly) Windows services Performance counters Event logs Message queues

Typical Architecture Elements Web Service Façade Remoting Façade (Windows Service) Business rules (Operations with no connection) Data Access Layer (all connected operations) Message Queues Windows Services Remote Web Services

Designing Web Services Group related operations and data into one method Decide on: Interface and return data Security Use output caching to improve performance Define your input and output data structures using XSD schemas Separate XML Web service from underlying business logic

XML Web Services Mapping Data Schema Services InvocationWebXML XSD WSDL SOAP ApplicationConceptsFrameworkObjects Classes Methods Calls The.NET Framework provides a bi-directional mapping

Returning Data From An XML Web Service SQL Server Customers DataAdapter XML Web service DataSet IIS Oracle Orders XML DataSet Generic Client.NET Client DataAdapter

Data Web Services demo demo

Binary Data Web services are not limited to textual data – images, sound files, etc Return as bytes with Base64 stream Use WS-Attachments (DIME) Direct Internet Messaging Encapsulation Available using WSE toolkit or in Visual Studio.NET 2003 Can use over TCP, other protocols

Web Services vs. Remoting Web Services are easier to create and configure Web Services can be accessed by non.NET systems Remoting faster and easier to secure Remoting offers true exceptions Decision point – if you control both ends, remoting is usually the better choice

Creating A Windows Service Great for non-UI, long-running functionality Monitoring Scheduled Activity Remoting Host Respond to events Timer tick Message queue receive Directory/file change Event log write

Installing Windows Services Can run under different security context LocalSystem requires no login Install using command line utility installutil.exe [projectname.exe] Uninstall using installutil.exe /u [projectname.exe] Custom installer

Service Events Inherits from System.ServiceProcess.ServiceBase Override event methods: MethodBehavior OnStartSet action for when service is started (thirty seconds maximum!) OnPauseSet action for when service is paused OnStopSet action for when service is stopped OnContinueSet action for when service is resumed from pause OnShutDownSet action for when system is shutting down OnCustomCommandSet action for a custom command OnPowerEventSet action for low battery/suspend

Debugging Windows Services F5 debuggging not available Service must be deployed and installed Attach to the Service’s process Still set breakpoints for events Have all errors/exceptions logged to Windows Event Log

Creating Windows Services demo demo

Service Controller Service Controller class allows you to stop, start, pause or obtain information about windows services Namespace: System.ServiceProcess.ServiceController Can only communicate via custom numeric commands

Controlling Windows Services demo demo

Performance Counters Per Application Performance Counters Enable easily monitoring of individual applications Custom Performance Counters APIs Now possible to publish unique application- specific performance data Great for real-time application monitoring Example: total orders, orders/sec

Event Logs Indispensable in the middle tier Log errors and activity Drag and drop programming Can monitor event log with a Windows Service Take action Record event to database

Message Queue Enables you to connect to, monitor, send/receive/peek and administer message queues Loosely coupled programming MessageQueue Class Send/receive/peek messages in the queue Message Class Construct for the message Namespace: System.Messaging

Performance Counters and Message Queues demo demo

Ask The Experts Get Your Questions Answered Billy will be in the Ask the Experts booth Wednesday afternoon from 2:00 to 4:00

Community Resources Most Valuable Professional (MVP) Newsgroups Converse online with Microsoft Newsgroups, including Worldwide User Groups Meet and learn with your peers

evaluations evaluations

© 2003 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. MICROSOFT MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY.