Вы находитесь на странице: 1из 11

The unified

framework for
rapidly building
service-oriented
Applications
0 Web host with in IIS:
0 
For HTTP services on Windows XP® SP2 & WS2K3
 For any service on Windows Vista® and Windows Server®
“Longhorn”
 Proven reliability, scalability, and security
 Requires
0 Self-Host a .svcany
within file.NET
to identify the Service Type
process:

 Available for any service


 Console apps, windowed apps, .NET NT Services …
All about Contracts
0 Service Contract: Describes the operations a service
can perform. Maps CLR types to WSDL.

0 Data Contract: Describes a data structure. Maps CLR


types to XSD.

0 Message Contract: Defines the structure of the


message on the wire. Maps CLR types to SOAP
messages.
Hosting Services in ASP.NET
0 Write your service as usual:
 [ServiceContract]
 [OperationContract] etc.
0 ServiceHost’s are represented as .svc files:
 <% @ServiceHost Service=“HelloService” %>
0 Service attribute is a CLR type name
0 Matches <service name=“xxx”> from web.config

Вам также может понравиться