Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
XmlSerializer
Message
De
01/06/2005 03:34:01
 
 
À
31/05/2005 17:15:38
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
XML
Titre:
Divers
Thread ID:
01018060
Message ID:
01018888
Vues:
18
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform