luni, 5 octombrie 2009

[WCF] Summaries I




ServiceHost _sh = new ServiceHost(typeof(MyService), _baseAddress);



svcutil /:t metadata http://localhost:8000/MyService
results 3 files:

A service is an autonomous (business) system that accepts one or more requests and returns one or more responses via a set of published and well defined interfaces.

Tenet 1: Boundaries Are Explicit
- A well-defined and published public interface
- easy to consume
- use explicit messages
- Keep the service surface area small
- Don’t expose implementation details

Tenet 2: Services Are Autonomous
• Contracts, once published, should not be changed.
Business Process Execution Language -- is a business process language that is based on XML and built using web service standards.

Tenet 3: Services Share the Schema and Contract, Not the Class
Tenet 4: Service Compatibility Is Based on Policy

A component is a piece of compiled code that can be assembled with other components to build applications.
A service is implemented by one or more components and is a higher-level aggregation than a component.
XSD - XML Schema Definition
WS - MetadataExchange = MEX
-> message to retrieve

= Simple Object Access Protocol
- it is extensible
- works across a no. of standardized underlying netw. protocols
- independent of language/platform/programming model
- can use one of many standard protocols (TCP, SMNP, FTP, MSMQ...)

Message (SOAP)
  • envelope
  • header (individual headers) & body (Message Name & Data, Fault)
  • 3 types: request msg. , response msg., fault msg
  • has Protocol Header (HTTP, SMNP,...)


WSDL ("whiz-dull")
- describe service endpoints
- standardization for specifying interfaces and allows for integration

Endpoint - “an association between a fully specified interface binding and a network address, specified by a URI that may be used to communicate with an instance of a web service.”
- ~~ port
- Service = collection of endpoints

WSDL Document Structure

Operations performed by the web service
- message -- Message used by the web service
- types -- Data types used by the web service
- binding -- Defines a communication endpoint (by means of protocol and address)
to access the service
- Service -- Aggregates multiple ports (in combination with binding and address
into a service)

Niciun comentariu:

Trimiteți un comentariu