Problem with .NET WebService

  • Thread starter Ostap Radkovskiy
  • Start date
O

Ostap Radkovskiy

The problem:

There is web service and its client (.NET 1.1).
The session support on web service is turned on.
After the number of successful roundtrips between client and server, web
service sends to client corrupted packet like this (the number of comments
on top could vary):


<!-- Here is a dummy timestamp from the server: 14:45:05 -->

<!-- Here is a dummy timestamp from the server: 14:45:10 -->
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd=http://www.w3.org/2001/XMLSchema<soap:Body>correct packet body inside - removed just for
sample</soap:Body>
</soap:Envelope>

Comments on top you see - the reason of Xml readers crash on client.
I've implemented a proxy to remove the comments <!-- ... --> (the cause of
crash) - however this only solved part of the problem - the other part is
that server after the mentioned packet should send HTTP/1.1 100 Continue -
and it does not!

How to fix? It appears to be .NET bug or something. Is there some solution,
workaround or patch?
 
B

Bruce Johnson [C# MVP]

Is the problem that the comments are placed into the response? If so, I'd be
looking for an HttpHandler that has been injected into the pipeline. Look in
either the web.config or the machine.config files on the server.
 
O

Ostap Radkovskiy

Thanks Bruce,

OUTSTANDING!!!

First, I was going to write something like "nei, my .NET install is clear
and there are no HttpHandlers installed and so on". You know, for all the
time I was looking either on IIS or .NET side - wrong places!. In fact - we
do use HttpHandlers on the project and the specific of use is that someone
has written the code to post these dummy strings into response when working
thread is busy for more then 5000msec (because app works both as website and
web service - heavily loaded). This was hidden in app kernel - who might
thought?

Thank you very much, your suggestion did worked!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top