:: thoughts on team system and more RSS 2.0
# Saturday, January 20, 2007

This week I found myself wanting to look at the raw XML data sent between a client and a service. Of course the WCF tool SvcTraceViewer generally makes more sense to use for tracing, but sometimes it's necessary to look at the actual data on the wire. In such case a tcp trace tool can be used and placed in-between the caller and the service. In the end this was really easy to setup but in order to save someone else the hour or so to figure it out here's how it works:

For tracing I used Simon Fell's tcpTrace available at http://www.pocketsoap.com/tcptrace/.

First start tcpTrace. It needs to sit in the middle of the call so have it listen to the port the server exposes and forward to different port. Then configure the server to listen to the port tcpTrace forwards to using the listenUri configuration setting. The client doesn't have to be changed since all it does is call tcpTrace, which then forwards to the service. The config used looks like this: 

Server config:

<service name="Service.Calculator">
   <
endpoint address="http://localhost:8001/CalculatorService"
                 listenUri="http://localhost:8002/CalculateService"
                 binding="basicHttpBinding"
                 contract="Service.ICalculator"         
   />
</
service>

Client config:

<client>
   <
endpoint address="http://localhost:8001/CalculatorService"
                 
binding="basicHttpBinding"
                 
contract="ICalculator"

   />
</
client>

Saturday, January 20, 2007 1:51:49 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [1] -
WCF (Indigo)
# Thursday, January 11, 2007

Note to self: Just to save the extra minutes to find the darn download - the VSTS Team Explorer can be downloaded here.

Thursday, January 11, 2007 9:21:10 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
Team System
# Friday, December 22, 2006

The new-and-improved version has been published. Promised this time is a number of buggfixes, especially VS2003 integration deserves this...

This version (1.2) includes (from the download page):

  • Enable handling branched solutions in Visual Studio 2003.
  • Fixed issues to enable provider to support Toad for SQL Server 2.0.
  • Enhanced the "Choose Folder in Team Foundation Server" dialog.
  • Fixed bug which prevented Properties Dialog from displaying local path.
  • Work Items Query list in the Checkin Dialog is loaded and saved on the disk.
  • "Get" operation performance improvements.
  • Defect fixes

The Visual Studio 2005 Team Foundation Server MSSCCI Provider v.1.2 can be downloaded here.

Friday, December 22, 2006 9:33:46 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
Team System

Got this question yesterday; can the ASP.NET session object be used to store state in a web service? The answer is yes, but the web service method must be marked with EnableSession = true.

Below is a small code snippet that shows how it's done:

[WebMethod(EnableSession = true)]
public string HelloWorld()
{   
   // Check if item in cache, else add it.
   if (HttpContext.Current.Session["stateItem"] == null)
   {
      HttpContext.Current.Session["stateItem"] = "some-item-to-store";
   }

   return (string)HttpContext.Current.Session["stateItem"];
}

Simple, but yet easy to forget...

Friday, December 22, 2006 8:36:30 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
Web Services
# Thursday, November 30, 2006

Last week I was interviewed by the Swedish Microsoft Partner program about my thoughts regarding the MCP program, why we focus on certification and what the value of it is. The article can be found here: http://www.microsoft.com/sverige/partner/callista_mcp.aspx (in Swedish).

Thursday, November 30, 2006 6:35:42 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -
General
# Tuesday, November 14, 2006

This year we attended the European TechEd in Barcelona, Spain. Tons of fun stuff and many Swedish colleagues.

Our impressions from TechEd can be viewed on the Swedish Microsoft MSDN web, found at http://www.microsoft.com/sverige/msdn/teched_2006.aspx (in Swedish).

Tuesday, November 14, 2006 10:40:02 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [1] -
General
Navigation
Archive
<January 2007>
SunMonTueWedThuFriSat
31123456
78910111213
14151617181920
21222324252627
28293031123
45678910
About the author/Disclaimer

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008
Mathias Olausson
Sign In
Statistics
Total Posts: 74
This Year: 22
This Month: 6
This Week: 2
Comments: 29
Themes
Pick a theme:
All Content © 2008, Mathias Olausson
DasBlog theme 'Business' created by Christoph De Baene (delarou)