Lorenzo Barbieri @ Weblogs.Asp.Net

Shake your thoughts... Confessions of a MSF and .NET addicted
        www.lorenzobarbieri.info

Activities

My articles<br><font size="1">(in English)</font>

My articles<br><font size="1">(in Italian)</font>

My old articles<br><font size="1">for <a href="http://www.objectway.it">ObjectWay SpA</a> (in Italian)</font>

My projects

The Italian Blog...<br><font size="1">(my Official Italian blog)</font>

Playing again with Timestamp check and a stupid exception trick...

To be notified on the server that the WSE2 client has a Timestamp problem (and perhaps doing something like logging the problem), I used this solution on the client:

try

{

proxyWse.DoSomething();

}

catch

{

try

{

proxy.LogError();

throw;

}

catch

{

throw;

}

}

 

In this way if there is an error with WSE2 the method called on the "normal" proxy succeedes, and then the code re-throws the exception that was generated by WSE2.

If the method called on the "normal" proxy fails, probably there is a connectivity problem, and an exception is thrown.

I don't know if this is the right way, but it works...

Posted: Jul 12 2004, 04:26 PM by barbilor | with no comments
Filed under:

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)