Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Web Services / March 2007

Tip: Looking for answers? Try searching our database.

SOAP Extension Returning Original Stream

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Datawright - 23 Mar 2007 11:43 GMT
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.
Datawright - 23 Mar 2007 14:05 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.