Best Practices For Building Web Services With Visual Studio: Sanguan Thammarojsakul
Best Practices For Building Web Services With Visual Studio: Sanguan Thammarojsakul
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
<WebService(Namespace :=
"http://msdn.microsoft.com/DevT1-46")>
Declares the interface, indicates that the class define
is a web service
Inherits System.Web.Services.WebService
Parent class for all web services in .NET
<WebMethod()>
Each method which is exposed as part of the service
Return values can be supported in any request forma
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 http://uddi.org
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 <service>.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
mcspreferral.microsoft.com/default.asp
Microsoft Certified Technical Education Centers (CTECs)
are Microsoft’s premier partners for training services
MSDN
Essential Resources for Developers
Subscription Library, OS, Professional, Enterprise,
Services Universal Delivered via CD-ROM, DVD, Web
Enterprise Developer
• Enterprise lifecycle tools MSDN Enterprise
• Team development support $2199 new
• Core .NET Enterprise $1599 renewal/upgrade
NEW
Servers
Professional
• Tools to build applications MSDN Professional
and XML Web services for $1199 new
Windows and the Web $899 renewal/upgrade
Where Can I Get MSDN?
Visit MSDN Online at
msdn.microsoft.com
Register for the MSDN Flash Email
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