Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » C#   (RSS)

More posts from Tim

Tim Noonan is on a blog-posting roll. Not long ago, he did quite a bit of work to get better performance in Visual Studio when dealing with large numbers of pending changes, among other things. Much of the performance improvements came from better use
Posted by buckh | 0 Comments

C# 3.0 features

I just read Ian Griffiths' post on C# 3.0 and LINQ - Expression Trees (linked from Jomo Fisher's C# 3.0 post , which was linked in John Rivard's Why Visual Studio targets only one version of the .NET Framework , which was in a link from Soma's Multi-targeting
Posted by buckh | 0 Comments
Filed under:

Validating XML characters in SOAP messages

I've written about using the SoapHttpClientProtocol subclasses generated by wsdl.exe several times over the last year, including handling authentication , HTTP response codes , and setting timeouts properly . Today I needed to change the code in TFS to
Posted by buckh | 1 Comments
Filed under:

How wide is a string when displayed in the console window?

Not too long ago, I had to fix the command line output for tf.exe, the Team Foundation Version Control command line app, so that output would be formatted properly for console windows (cmd.exe) using double-byte code pages. The code originally computed
Posted by buckh | 2 Comments
Filed under:

Team Foundation Version Control client API example

Here's a really simple example that uses the Beta 3 version control API.
Posted by buckh | 7 Comments

Network programming links

Adarsh Khare , who is a tester for the .NET networking classes, has useful blog. Recent posts include the new NetworkInformation namespace that includes things like network availability events and a reference to an MSDN article on running ASMX without
Posted by buckh | 0 Comments
Filed under:

Timeouts on the HttpWebRequest (and thus SOAP proxies)

Last summer I wrote several posts on using HttpWebRequest and SOAP proxies . Recently I was working on code that needed to handle requests that could take a really long time for the server to process. The client would give up and close the network connection
Posted by buckh | 1 Comments
Filed under:

Handling HTTP response codes in SOAP proxies

Continuing with the last post on authentication issues with wsdl.exe-generated SOAP proxies, you may need to handle HTTP status codes to provide custom exceptions. To do this, the SoapHttpClientProtocol class (actually its parent HttpWebClientProtocol
Posted by buckh | 3 Comments
Filed under:

More on working with SOAP proxies

In my last post on authentication and SOAP proxies , I mentioned setting the Credentials property on the wsdl.exe-generated proxy object. Another way to do it and do other things is to override the GetWebRequest() method. In the following example, the
Posted by buckh | 3 Comments
Filed under:

Authentication and SOAP proxies

My last post discussed authentication in web service calls using HttpWebRequest. That caused one reader to wonder how this ties back to SOAP requests. If you are using wsdl.exe to generate a SOAP proxy class, it derives from System.Web.Services.Protocols.SoapHttpClientProtocol
Posted by buckh | 1 Comments
Filed under:

Authentication in web services with HttpWebRequest

Hatteras has three tiers: client, middle, and data. The middle tier is an ASP.NET web service on a Windows 2003 Server running IIS 6. When the client (we use C# for both it and the middle tier) connects to the middle tier, it must authenticate with IIS
Posted by buckh | 8 Comments
Filed under:

TechEd C# presentations

Duncan Mackenzie just posted a link to the C# TechEd 2004 page that has slides from some of the presentations (more to come). Cool!
Posted by buckh | 0 Comments
Filed under:

Converting a text file from one encoding to another

The .NET framework handles file encodings very nicely. Not too long ago, I needed to convert files from one encoding to another for a library that didn't handle the encoding of the original file. Since someone on an internal alias asked about doing this
Posted by buckh | 3 Comments
Filed under:
 
Page view tracker