Simplified configuration WCF WebHttp Services Discovery Workflow Services (+ WS AppFabric) Routing service Advanced Features Simplified Configuration default endpoints.

Download Report

Transcript Simplified configuration WCF WebHttp Services Discovery Workflow Services (+ WS AppFabric) Routing service Advanced Features Simplified Configuration default endpoints.

Simplified
configuration
WCF WebHttp
Services
Discovery
Workflow Services
(+ WS AppFabric)
Routing service
Advanced Features
Simplified
Configuration
default endpoints
<system.serviceModel>
<protocolMapping>
<add scheme="http" binding="basicHttpBinding" bindingConfiguration="" />
<add scheme="net.tcp" binding="netTcpBinding" bindingConfiguration=""/>
<add scheme="net.pipe" binding="netNamedPipeBinding" bindingConfiguration=""/>
<add scheme="net.msmq" binding="netMsmqBinding" bindingConfiguration=""/>
</protocolMapping>
...
without a name
different scopes
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding messageEncoding="Mtom"/> <!-- notice there’s no name attribute -->
</basicHttpBinding>
</bindings>
</system.serviceModel>
</configuration>
<configuration>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior> <!-- notice no name attribute -->
<serviceMetadata httpGetEnabled="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
</configuration>
standard endpoints
kind
Standard endpoint name
mexEndpoint
dynamicEndpoint
discoveryEndpoint
udpDiscoveryEndpoint
announcementEndpoint
udpAnnouncementEndpoint
workflowControlEndpoint
webHttpEndpoint
webScriptEndpoint
Description
Defines a standard endpoint for MEX configured with IMetadataExchange for the service contract, mexHttpBinding as
the default binding (you can change this), and an empty address.
Defines a standard endpoint configured to use WCF Discovery within a WCF client application. When using this
standard endpoint, an address is not required because during the first call, the client will query for a service endpoint
matching the specified contract and automatically connect to it for you.
Defines a standard endpoint that is pre-configured for discovery operations within a client application. The user
needs to specify the address and the binding when using this standard endpoint.
Defines a standard endpoint that is pre-configured for discovery operations within a client application using the UDP
binding at a multicast address. Derives from DiscoveryEndpoint.
Defines a standard endpoint that is pre-configured for the announcement functionality of discovery. The user needs
to specify the address and the binding when using this standard endpoint.
Defines a standard endpoint that is pre-configured for the announcement functionality over a UDP binding at a
multicast address. This endpoint derives from announcementEndpoint.
Defines a standard endpoint for controlling execution of workflow instances (create, run, suspend, terminate, etc).
Defines a standard endpoint configured with WebHttpBinding and WebHttpBehavior. Use to expose REST services.
Defines a standard endpoint configured with WebHttpBinding and WebScriptEnablingBehavior. Use to expose Ajax
services.
virtual mapping
<configuration>
<system.serviceModel>
<serviceHostingEnvironment>
<serviceActivations>
<add relativeAddress="Greeting.svc" service="GreetingService"/>
</serviceActivations>
</serviceHostingEnvironment>
</system.serviceModel>
</configuration>
Service
Discovery
Adhoc
Managed
Clients can discover services on
a local subnet (UDP-based)
Clients can discover services on
a larger "managed" network
(beyond the local subnet)
through a discovery proxy
discovery endpoint
dynamicEndpoint
DiscoveryClient
scopes
announce
announcement endpoints
AnnouncementService
managed service discovery
DiscoveryProxyBase
Routing
Service
RoutingService
content-based routing
Service
Client
Router
"filters"
Service
Protocol bridging
Error handling
Multi-cast routing
WCF WebHttp
Services
WCF REST Starter Kit
Automatic
help page
HTTP caching
WCF/ASP.NET
routes
Message format
selection
REST project
templates
HTTP “faults”
Various API
extensions
helpEnabled=“true”
[AspNetCacheProfile]
[AspNetCacheProfile("CacheFor60Seconds")]
[WebGet(UriTemplate=XmlItemTemplate)]
[OperationContract]
public Counter GetItemInXml()
{
return HandleGet();
}
HTTP “Accept”
<configuration>
<system.serviceModel>
<standardEndpoints>
<webHttpEndpoint>
<!-- the "" standard endpoint is used for auto creating a web endpoint. -->
<standardEndpoint name="" helpEnabled="true"
automaticFormatSelectionEnabled="true"/>
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
</configuration>
WebFaultException
RegisterRoutes
ServiceRoute
private void RegisterRoutes()
{
WebServiceHostFactory factory = new WebServiceHostFactory();
RouteTable.Routes.Add(new ServiceRoute("Bookmarks", factory,
typeof(BookmarkService)));
RouteTable.Routes.Add(new ServiceRoute("Users", factory,
typeof(UserService)));
}
Workflow Services &
Windows Server AppFabric
see session #XXX
http://msdn.microsoft.com/en-us/library/ee354381.aspx
http://msdn.microsoft.com/en-us/library/ee342461.aspx
http://msdn.microsoft.com/en-us/magazine/2009.01.net40.aspx
www.Microsoft.com/WindowsAzure/AppFabric
http://msdn.microsoft.com/en-us/azure/netservices.aspx
http://blogs.msdn.com/b/netservices/
http://twitter.com/azure_appfabric
http://www.microsoft.com/biztalk/
http://msdn.microsoft.com/biztalk/
http://blogs.msdn.com/biztalk_server_team_blog
http://www.biztalkblogs.com/
www.appinfrastructure.com
http://www.microsoft.com/appfabric
http://msdn.microsoft.com/appfabric
www.microsoft.com/teched
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn
Sign up for Tech·Ed 2011 and save $500
starting June 8 – June 31st
http://northamerica.msteched.com/registration
You can also register at the
North America 2011 kiosk located at registration
Join us in Atlanta next year