Archive for the 'C#' Category

Webservice Interoperability

April 17, 2007

I’ve had the joy over the last few days of working with a developer to figure out why a Web-sphere web service won’t talk to a .NET web service. The Java team were saying it was a .NET issue, and the .NET team were saying it was a java issue. The culprit? The .NET web service didn’t like an XML declaration in the soap message from the Websphere service. Both the messages (with or without) conformed to the specifications however. Was good to get it all working and I learn’t alot about web services. I’d like to work more with them and will be making one of my own for something I’m working on.

I managed to collect a few good links on the topic:

Platform Interoperability: Sun ONE and Microsoft .NET, Achieving Asynchronous Communications

Web services programming tips and tricks: Improve the interoperability between J2EE and .NET, Part 2

Improving Web Service Interoperability

IBM WebSphere Studio and Microsoft .NET Working Together — Part 1


Trace listeners

October 3, 2006

In my post Solutions for basic logging I gave a very brief look at some solutions for implementing basic logging in an application. One of the tools I forgot to add was Trace listeners. I decided this was by far the best solution for my particular need: I can specify if the application is to perform logging or not by changing an XML value, I can easily choose the medium of the output, and writing the trace is simple.

I’m currently outputting to a text file but this could easily be the windows event log or XML fragment for example, and writing the message is as simple as writing to the console. I will deploy the application with logging off; If any issues arise I can tell the client to change the value (or include a script that will do it) and have them send the output. Easy!

I’ve noticed my application would benefit rethinking my logic (order of events, processing methods). This is to be expected really as in my initial builds I just wanted to make it work. I now want to make it as efficient as I can.

Trace Listener resources:

Tracing in .NET and Implementing Your Own Trace Listeners

TraceListener Class

Trace Listeners

Debugging once you go live: Trace Listeners