My favorite presentations were about Windows Communication Foundation (WCF). First off, WCF looks like the answer to many of our solutions. Being able to implement a variety of communication transports with run time configuration is awesome. It's also going to be great to bring the WS-* protocols into the mainstream with direct support for BizTalk ports.
I picked up a few best practices that we'll have to be sure to follow:
- Don’t plan on migrating to WCF. Plan on engineering new applications. The value of migrating is limited since existing applications ‘work’ and moving web services projects to WCF web services doesn’t really gain much.
- When validating messages avoid ‘schema validation’ as it can be costly. Validating Data Contracts is preferable.
- Protocols
- BasicHTTP is for all HTTP and web services type communication except for if you need WS-*
- WSHTTP is for WS-* web services communications
- NetTCP is for fast, efficient communication (and is best for machine-to-machine within your .NET solution)
- NetNamedPipes (I think it’s called) is best for service calls within the same machine
- Add Fault Operations to the WSDL contracts
No comments:
Post a Comment