SOA
I was attending the Dallas Connected Systems UG last night (http://biztalkusergroup.com/) and during the presentation I made the bold assertion that one should NOT use the "using statement" when working with WCF. Now I am a HUGE proponent of the using statement in normal circumstances. IMHO if it implements IDisposable use the using statement, except with WCF. This has to do with the way that WCF errors out and when that happens how the connection gets closed. . . Doing my best LeVar Burton "But you don't have to take my word for it" (http://en.wikipedia.org/wiki/Reading_Rainbow). Microsoft even says it in...
When attempting to call a webservice that lives outside my corperate firewall I was getting the following error:
System.Net.WebException was unhandled by user code Message="Unable to connect to the remote server" Source="System" StackTrace: at System.Net.HttpWebRequest.GetRequestStream() at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
After some research I stumbled across this post by Rick Strahlhttp://west-wind.com/weblog/posts/3871.aspx
but my problem was a little bit different. In his case he desired to disable to the automatic proxy detection, but I needed to wire in the script that my corperate IT department requires that we use. Easy enough just add the following to the web.config
<system.net> <defaultProxy> <proxy scriptLocation ="url to script here" /> </defaultProxy> </system.net>
I...
Went to an MSDN event by Russ (http://blogs.msdn.com/rfustino/) a few weeks ago and during his demo he displayed this cool tool called Fiddler (http://www.fiddler2.com/). A must have debugging tool for any Smart Client or Web Developer. Fiddler is a Web Debugging Proxy which logs all HTTP(S) traffic between your computer and the Internet. Fiddler allows you to inspect all HTTP(S) traffic, set breakpoints, and "fiddle" with incoming or outgoing data. Fiddler includes a powerful event-based scripting subsystem, and can be extended using any .NET language.Fiddler is freeware and can debug traffic from virtually any application, including Internet Explorer, Mozilla Firefox, Opera,...
The Microsoft .NET Framework 3.0 (formerly WinFX), is the new managed code programming model for Windows. It combines the power of the .NET Framework 2.0 with four new technologies: Windows Presentation Foundation (WPF), Windows Communication Foundation (WCF), Windows Workflow Foundation (WF), and Windows CardSpace (WCS, formerly “InfoCard”). Use the .NET Framework 3.0 today to build applications that have visually compelling user experiences, seamless communication across technology boundaries, the ability to support a wide range of business processes, and an easier way to manage your personal information online. This is the same great WinFX technology you know and love, now with...