httpwebrequest/response inputstream

  • Thread starter Thread starter request
  • Start date Start date
R

request

Hi all
I am trying for conversion of xml to binary xml.

i have used httpwebrequest where i can give the URL. in getresponse()
i got the stream.

this stream is XML file enclosed in double quotes.

now i have to save that stream to disk as .xml file. then i give this
to convert function. output from that function is in binary format.
now i have to save it as .bxml file as i am getting binary array.

if u have an idea please help me out.

regards
request.
 
Hi

I don't have an answer for you, but I would like to know how you retrieved
the XML from a webrequest.
I make a webrequest (POST) to a systems stdAPI , to retrieve XML, but I get
errors when I try read it , ie. "invalid data at the root level"
I use
req = WebRequest.Create(url)
req.Method = "POST"
req.ContentType = "application/x-www-form-urlencoded"
and
...
result = req.GetResponse()
ReceiveStream = result.GetResponseStream()
and then

I've tried a Stream and textReader,
a XMLtextreader
a XMLValidatingReader

How did you do it then ?

Appreciated
Neal
 
request said:
Hi all
I am trying for conversion of xml to binary xml.

i have used httpwebrequest where i can give the URL. in getresponse()
i got the stream.

this stream is XML file enclosed in double quotes.

now i have to save that stream to disk as .xml file. then i give this
to convert function. output from that function is in binary format.
now i have to save it as .bxml file as i am getting binary array.

if u have an idea please help me out.

Stupid question, but what is the problem? Where are you stuck?

Cheers,
 
Back
Top