all groups > dotnet web services > march 2007 >
You're in the

dotnet web services

group:

SOAP Extension Returning Original Stream


SOAP Extension Returning Original Stream Datawright
3/23/2007 3:43:40 AM
dotnet web services:
This might be a daft post but I am very new to the SOAP Extension
class. Basically I have taken the MSDN example that writes the SOAP
request and response to a log file in C#.

The code works fine and writes the data to the log file. As such I
tweaked the code to change the new stream to remove some unwanted
items. This also works fine and the resulting log has the tweaked
response. So far so good.

However, the original stream is always returned to the client
application. As I said my code is just a slight variant on the
original example. The only changes I made are in the WriteInput method
where I change the contents of the new stream. I pipe the new stream
to the log file after this change as normal.

Here is the contents of the config file is use in case it's relevant:

<configuration>
<system.web>
<webServices>
<soapExtensionTypes>
<add type="SoapInt.TraceExtension, SoapInt" priority="1" group="0" />
</soapExtensionTypes>
</webServices>
</system.web>
</configuration>

As I said I'm very new to this and don't know whether the example on
MSDN is supposed to return the new stream or if it is missing some
extra code.

Any help will be much appreciated.

Thanks in advance.
Re: SOAP Extension Returning Original Stream Datawright
3/23/2007 6:05:09 AM
I've sorted this out now. The new stream was being returned but the
original SOAP header was being returned. Once that was tweaked it all
worked. Thanks anyway.
AddThis Social Bookmark Button