Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
XmlSerializer
Message
From
01/06/2005 03:34:01
 
 
To
31/05/2005 17:15:38
Keith Payne
Technical Marketing Solutions
Florida, United States
General information
Forum:
ASP.NET
Category:
XML
Title:
Miscellaneous
Thread ID:
01018060
Message ID:
01018888
Views:
17
>Danijel,
>
>Have you examined the contents of streamWriter after the call the Transform? The reason I ask is that you are declaring streamWriter as a base stream when you may have intended on declaring an actual streamwriter with the HTTPRequest.GetRequestStream as the base. Another possibility is that in a base stream, the Read, Write, and Seek methods may only be stubs. I couldn't say for sure because I haven't tried to use a base stream.
>
>Other than that, I can't see anything wrong with the code from reading it.

Keith,

I couldn't find a way of examining the contents of the streamWriter, partially because Seek() is not supported on that type of stream. That was also why I tried using MemoryStream further down the code, to be able to examine that one instead. That turned out to show blanks as I commented in my code example.

I don't get your second point on declaring streamwriter with the HTTPRequest.GetRequestStream as the base. Isn't that exactly what I'm doing? I'm using System.Net.WebRequest.GetRequestStream() (not System.Web.HTTPRequest.GetRequestStream) which returns System.IO.Stream.

Any advice is very much appreciated.
Danijel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform