Home > Microsoft .Net Development Tips > .NET Developer > Nick Allen's tips for developing SOA for .NET
Win Development Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

.NET DEVELOPER

Nick Allen's tips for developing SOA for .NET


George Lawton
05.14.2008
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Windows Communication Foundation (WCF) is SOA for MS and Nicholas Allen tells developers how to make it work. Allen - a program manager at Microsoft working on BizTalk Server, Windows Communication Foundation and other projects for the .NET Framework - provides some valuable tips and tricks for getting the most out of your WCF development efforts. Here are some highlights of some of his most popular blogs.

If you have moved over to Windows Vista, you might have run into problems running HTTP services. In Configuring HTTP for Windows Vista, Allen explains that the problems may occur because many developers are not running with administrator privileges by default, as they were on earlier platforms. In Windows 2003, the administrator could just add other users in the httpcfg.exe tool. On Vista, you are going to need to learn the intricacies of the netsh.exe tool to do the same thing.

In "Inside the Standard Bindings," Allen covers how to set up the most common bindings in your WCF apps. NetTCP binding is the most popular choice for communicating over an Internet. It is faster than HTTP, but only works for WCF. BasicHTTP allows connectivity with other applications via SOAP and HTTP protocols.

Poison messages are permanently unprocessable, which can lock an application in an infinite loop, sucking the life out of your application. In MSMQ and Poison Messages, Allen explains the primary strategy MSMQ uses for poison messages. The application needs to set a threshold of attempts for determining if a message is not getting processed. In MSMQ 3 these got moved to a dead letter box that had to be manually cleared. MSMQ 4 adds another step to retry the queue without burdening the administrator or the application.

In Making Sense of Transport Quotas, Allen explains how transport quotas prevent Denial of Service (DoS) attacks by setting a hard limit on network usage. In general, the developer does not need to touch these unless an installation is running out of resources or connections are being limited despite resource availability. The three main types of quotas are one) Timeouts; two) Memory allocation limits; and three) Collection size limits that bound indirectly allocated resource consumption.

In this How to Enable Streaming blog posting, Allen describes how to scale up your application and how turning on streaming can reduce the need for large memory buffers, particularly for larger messages. By default, this is turned off and all messages are sent using buffered transfers. But there are restrictions imposed by streaming such as one) A single input/and or output parameter; two) No support for Reliable Messaging, Transaction and SOAP security; and three) SOAP headers are always buffered.

Network Address Translators and Firewalls can get in the way of the direct path between the client and server. Allen spells out in great detail some of the different issues and fixes for integrating WCF communications through an organization's infrastructure. NAT allows multiple machines to share a single IP address. This is great for sharing a DSL modem in an office, but makes it more difficult to deliver WCF messages to the right client. Firewalls examine packets and discard what they don't like. They could prove problematic when an employee is trying to get work done from home. On the NAT side, one solution is Teredo, IPV6 translation technology.

When a developer turns off anonymous access to improve security, Allen points out in Preventing Anonymous Access that you must change it in both the IIS and service configuration settings. This can be tricky because some calls, such as TransportCredentialOnly are not supported by every binding.


Rate this Tip
To rate tips, you must be a member of SearchWinDevelopment.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
.NET Developer
ASP.NET Ajax components: Vendor roundtable -- Part 3
Best practices of the AJAX kind
Printing in Windows Presentation Foundation
Visual Studio 2008 and .NET Framework 3.5 SP1 introduces ADO .NET Entity Designer
Check the MSDN Virtual Labs for regular, compelling new content
Book Excerpt: Sams Teach Yourself Visual Basic 2008 in 24 Hours -- Complete Starter Kit
ASP.NET Ajax components: Vendor roundtable -- Part 2
Check out CodePlex for a ton of interesting .NET projects
ASP.NET Ajax components: Vendor roundtable -- Part 1
Microsoft Popfly turns online visual tools to good use

.NET Framework application development
Visual Studio Team System Add-ins: Conchango Scrum for Team System and Scrum Dashboard
Infragistics Silverlight 2.0 chart and gauge components released
Book Excerpt: Sams Teach Yourself Visual Basic 2008 in 24 Hours -- Complete Starter Kit
Silverlight and Parallel .NET updates due from Microsoft
Check out CodePlex for a ton of interesting .NET projects
Microsoft delivers upgrades in .Net 3.5 SP1 Beta
Gates to show TouchWall to CEOs
Microsoft Popfly turns online visual tools to good use
The Vista Peer-to-Peer (P2P) Toolkit extends the Coding For Fun (C4F) initiative
Advanced Windows Debugging Book Chapter and Podcast
.NET Framework application development Research

.NET Framework application testing and security
Advanced Windows Debugging Book Chapter and Podcast

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
reparse point  (SearchWinDevelopment.com)
Visual Basic  (SearchWinDevelopment.com)
Visual Basic .NET  (SearchWinDevelopment.com)
Visual InterDev  (SearchWinDevelopment.com)
Visual Studio .NET  (SearchWinDevelopment.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts