Best Practices for Building Web Services with Visual Studio ®.NET Sanguan Thammarojsakul Microsoft MVP -.NET Department of Computer Science, Faculty of.

Slides:



Advertisements
Similar presentations
Oct, 26 th, 2010 OGF 30, NSI-WG: Network Service Interface working group Web Services Overview Web Services for NSI protocol implementation
Advertisements

Web Service Architecture
Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
Tuesday, June 10, 2003 Web Services Brief Overview & Security Assertion Coordinator Pattern by Mohammad Abushadi & Riaz Ahmed for Security Group CSE -
Matthew Kubicina CIS 764 Kansas State University.
1 Understanding Web Services Presented By: Woodas Lai.
WEB SERVICES DAVIDE ZERBINO.
Building and Using Web Services with ASP.NET Rob Howard Program Manager.NET Framework Team Microsoft Corp.
XML Web Services in Visual Studio ®.NET NameTitleCompany.
Presentation 7 part 2: SOAP & WSDL. Ingeniørhøjskolen i Århus Slide 2 Outline Building blocks in Web Services SOA SOAP WSDL (UDDI)
Chapter 11 ASP.NET JavaScript, Third Edition. 2 Objectives Learn about client/server architecture Study server-side scripting Create ASP.NET applications.
Chapter 12 Extending Web Applications. ASP.NET 2.0, Third Edition2.
The 100% Inspiration Tour. Web Services – An Industry Approach to the evolution of Distributed Architecture Mark Johnston Academic Team, Microsoft UK.
Prashanth Kumar Muthoju
Microsoft ® ASP.NET: Designing and Developing a Line-of-Business Web Application.
An MSDN Subscription acts as a lifeline for software developers, testers, architects, IT professionals, database engineers, and others. It provides priority.
Leveraging Application Blocks in Your Application Development Ihsan Anabtawi Technology Specialist Microsoft ® Corporation.
Intro to dot Net Dr. John Abraham UTPA – Fall 09 CSCI 3327.
ASP.NET: Designing and Developing a Line-of-Business Web Application Ammar Abuthuraya Developer & Platform Lead Microsoft ® Corporation.
.NET, and Service Gateways Group members: Andre Tran, Priyanka Gangishetty, Irena Mao, Wileen Chiu.
Best Practices for ASP.NET Development Ammar Abuthuraya Developer & Platform Lead Microsoft Corporation.
Best Practices for.NET Development Thom Robbins
XML Web Services in Visual Studio.NET Peter Ty Developer Evangelist.NET and Developer Group.
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Introduction to .NET Rui Ye.
Joe Stagner Developer Community Champion Microsoft Corporation Best Practices and Techniques for Building Secure.
Visual Studio ®.NET Data with XML Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft Modified.
CIS 375—Web App Dev II Microsoft’s.NET. 2 Introduction to.NET Steve Ballmer (January 2000): Steve Ballmer "Delivering an Internet-based platform of Next.
Microsoft ®.NET and Microsoft ® Office 2003 Suthep Sangvirotjanaphat [MVP]
Introducing Reporting Services for SQL Server 2005.
D402 Extending your LOB Solution with Microsoft EPM Larry Duff Senior Consultant Microsoft Corporation.
Developing Reporting Solutions with SQL Server
CSC8530 Distributed Systems XML Web Services David Vaglia.
11 Web Services. 22 Objectives You will be able to Say what a web service is. Write and deploy a simple web service. Test a simple web service. Write.
Current Trends in Network- Based Application Developments Bill Chu Department of Software and Information Systems UNC Charlotte.
Web Services BOF This is a proposed new working group coming out of the Grid Computing Environments Research Group, as an outgrowth of their investigations.
Grid Chemistry System Architecture Overview Akylbek Zhumabayev.
Web Services. ASP.NET Web Services  Goals of ASP.NET Web services:  To enable cross-platform, cross- business computing  Great for “service” based.
Create Windows ® Applications with.NET Carlotta Eaton ( Associate Professor of IST New River Community College Slides by Microsoft.
Microsoft.NET Norman White Stern School of Business.
Introduction to ASP.NET COMPLETELY DESIGNED BY: COMPLETELY DESIGNED BY: ER.ASHISH PANDEY ER.ASHISH PANDEY (KNOWLEDGE EXECUTIVE ) (KNOWLEDGE EXECUTIVE )
Intro to dot Net Dr. John Abraham UTPA CSCI 3327.
Key Components of.NET Framework  Common Language Runtime  CLR at Design time  CLR at Runtime  Class Library  Assemblies  Namespaces  ASP.NET  Applications.
The Module Road Map Assignment 1 Road Map We will look at… Internet / World Wide Web Aspects of their operation The role of clients and servers ASPX.
Kemal Baykal Rasim Ismayilov
An Overview of Microsoft.NET Todd M. Gagorik Technical Architect Microsoft Corporation.
Week Six : Writing Web Services Aims: Creating and Consuming student’s first Web Services Learning Outcomes: Familiarity with VS.NET for creating and consuming.
Chapter 7: Creating and Consuming XML Web Services Understanding XML Web Services Creating XML Web Services Deploying and Discovering XML Web Services.
1 G52IWS: Web Services Chris Greenhalgh. 2 Contents The World Wide Web Web Services example scenario Motivations Basic Operational Model Supporting standards.
Developing SQL Server 2000 Reporting Services Applications Brian Welcker Group Program Manager SQL Server Reporting Services Microsoft Corporation.
Welcome. Welcome to this TechNet Event URL for on-line feedback is in your reminder No Planned Fire Drills Please turn your Mobile Phones off To.
.NET Mobile Application Development XML Web Services.
INFSO-RI Enabling Grids for E-sciencE Web Services Mike Mineter National e-Science Centre, Edinburgh.
Introduction to.NET Building.NET Applications Mike Taulty Developer & Platform Group Microsoft Ltd
Building Custom Controls with ASP.NET and the Microsoft ®.NET Framework Rames Gantanant Microsoft Regional Director, Thailand
SOAP, Web Service, WSDL Week 14 Web site:
Introduction to Web Services Srinath Vasireddy Support Professional Developer Support Microsoft Corporation.
A Detailed Introduction To Visual Studio.NET CRB Tech ReviewsCRB Tech Reviews introduces you to the world of Visual.
Jim Fawcett CSE681 – SW Modeling & Analysis Spring 2005
Netscape Application Server
Sabri Kızanlık Ural Emekçi
ASP.NET Web Forms and Web Services
Smart Client Deployment With Microsoft® Windows® Forms
The future of distributed systems architecture
WEB SERVICES DAVIDE ZERBINO.
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
Mark Quirk Head of Technology Developer & Platform Group
Presentation transcript:

Best Practices for Building Web Services with Visual Studio ®.NET Sanguan Thammarojsakul Microsoft MVP -.NET Department of Computer Science, Faculty of Science and Technology Assumption University of Thailand

What we will cover  ASP.NET Web Services  ACT  SOAP Security  Global XML Web Services Architecture (GXA)  scalability, interoperability, reliability, and security

Session Prerequisites  Familiarity with.NET Programming  Know Visual Basic ®.NET  Familiar with ASP.NET Level 300

Agenda  Architecture of Web Services  Testing Web Services  Securing SOAP  Web Services in the Enterprise

Architecture of Web Services Open Middle Tier Implementation  What is a Web Service?  A website without the user interface  A method for defining interfaces above the transport protocol  XML Interoperability  Web Services support 4 protocols  Http Get - Interoperable  Http Post - Interoperable  Http SOAP - Interoperable  Import as a DLL for an object interface -.NET

Architecture of Web Services Implementing XML Services   Declares the interface, indicates that the class defined is a web service  Inherits System.Web.Services.WebService  Parent class for all web services in.NET   Each method which is exposed as part of the service.  Return values can be supported in any request format but Output parameters are only supported in SOAP

Architecture of Web Services Service Discovery  UDDI: Universal Description, Discovery and Integration  Design time specification for the discovery of services and communication of their interface  Does not define the service implementation and protocol details.  Complemented by WSDL  Managed by an industry-wide consortium; for details visit

Agenda  Architecture of Web Services  Testing Web Services  Securing SOAP  Web Services in the Enterprise

Testing Web Services Default ASMX Pages  Visual Studio creates a default test frame for each web service  Accessible from the.asmx page  The automated page only supports and test the http Get protocol  Can act as the starting point for both functional and performance testing

Testing Web Services Performance Testing  Application Center Test  Allows for the automated execution of web based resources using VB Scripts  Two versions  Full version in Application Center Server  Developer Version in Visual Studio.NET Enterprise Architect edition  Produces XML based results  Supports Side by Side Comparison  Integrated with Performance Counters for collection of Transaction Cost Analysis data

Testing Web Services Transaction Cost Analysis Transaction Cost Analysis Equation Cycles = N * S * avg (Pt) / avg(Rps) Where:  N = Number of Processors  S = Speed of Processors  Pt = System: % Total Processor Time  Rps = ACT ASP Requests per second  Cycles = Average CPU cycles

Demonstration 1 Transaction Calculator Service Run the T_Calc Service Create a Simple ACT Test Run a Custom ACT Test

Agenda  Architecture of Web Services  Testing Web Services  Securing SOAP  Web Services in the Enterprise

Securing SOAP Authentication & SSL  Authentication is supported  Selected from Internet Services Manager  NTLM and Basic authentication are available  Use: New Net.NetworkCredential()  Authentication does not protect data  To protect data can use SSL  From Browser preface call with  From Code modify.url property to include  Https is transport specific

Securing SOAP Encoding & Encryption  UTF-8 Encoding  Can be used for the contents of a SOAP Message  Allows for the inclusion of binary data  Encryption .NET supports several forms of encryption  Can be used to protect data without relying on transport protocol  Requires key synchronization

Demonstration 2 Authentication/Security Create a service requiring Authentication Create a Windows Form Client Call a Service that Encodes response Data

Agenda  Architecture of Web Services  Testing Web Services  Securing SOAP  Web Services in the Enterprise

Web Services in the Enterprise Messaging Infrastructure  Global XML Services Architecture (GXA)  GXA has four key specifications to date  WS-Security  Credential exchange, message integrity, and message confidentiality  WS-License  Encoding for common license formats

Web Services in the Enterprise Messaging Infrastructure  WS-Referral  Partition URL namespaces between nodes  WS-Routing  Route messages across intermediate SOAP nodes  GXA is still under development as an industry wide standard.  Other specifications may be added as the standard develops.

Web Services in the Enterprise SOAP Extensions  SOAP Extensions  Added to the SOAP envelope  Provide a generic means of implementing additional capabilities. .NET SoapExtension  System.Web.Services.Protocols.SoapExtension  Will be the core of implementing GXA

Session Summary  Use Web Services as Middleware  Use ACT for lifecycle testing support  Use.NET’s built in mechanisms for securing web services  SOAP Extensions

For More Information…  MSDN Web site at   WebServices Specifications  /library/en-us/dnsrvspec/html/wsspecsover.asp  Reliable XML Web Services  /library/en-us/dnexxml/html/xml asp  Using SOAP Extensions for Encryption  /library/en-us/dnaspnet/html/asp asp

For More Information…  Transaction Cost Analysis  r/techinfo/planning/2000/wp_tca.asp  Global XML Web Services Architecture  rvices/gxa_overview.aspx  GotDotNet.com

MS Press Essential Resources for Developers To find the latest developer related titles visit

Training Training Resources for Developers  Developing XML Web Services Using Visual C#  Course #2524  Building ASP.NET Applications  Course #2063  Programming with Microsoft ® Visual Basic.NET  Course #2373 To locate a training provider for this course, please access mcspreferral.microsoft.com/default.asp Microsoft Certified Technical Education Centers (CTECs) are Microsoft’s premier partners for training services

Training & Events MSDN Training, Tech-Ed, PDC, Developer Days, MSDN/Onsite Events MSDN Essential Resources for Developers Subscription Services Online Information Membership Programs Print Publications Library, OS, Professional, Enterprise, Universal Delivered via CD-ROM, DVD, Web MSDN Online, MSDN Flash MSDN User Groups MSDN Magazine MSDN News

MSDN Subscriptions THE way to get Visual Studio.NET Visual Studio.NET MSDN Subscriptions NEW Professional Tools to build applications and XML Web services for Windows and the WebTools to build applications and XML Web services for Windows and the Web MSDN Professional $1199 new $899 renewal/upgrade MSDN Enterprise $2199 new $1599 renewal/upgrade MSDN Universal $2799 new $2299 renewal/upgrade Enterprise Developer Enterprise lifecycle toolsEnterprise lifecycle tools Team development supportTeam development support Core.NET Enterprise ServersCore.NET Enterprise Servers Enterprise Architect Software and data modelingSoftware and data modeling Enterprise templatesEnterprise templates Architectural guidanceArchitectural guidance

Where Can I Get MSDN?  Visit MSDN Online at msdn.microsoft.com  Register for the MSDN Flash Newsletter at msdn.microsoft.com/flash  Become an MSDN CD Subscriber at msdn.microsoft.com/subscriptions  MSDN online seminars msdn.mircosoft.com/training/seminars  Attend More MSDN Events

Session Credits  Author: Bill Sheldon  Producer/Editor: Field Content Team  Reviewers  Field Content Council