PC Review


Reply
Thread Tools Rate Thread

httpwebrequest/response inputstream

 
 
request
Guest
Posts: n/a
 
      24th Feb 2005
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.


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
 
Reply With Quote
 
 
 
 
=?Utf-8?B?TmVhbA==?=
Guest
Posts: n/a
 
      24th Feb 2005
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" wrote:

> 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.
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com
>

 
Reply With Quote
 
Joerg Jooss
Guest
Posts: n/a
 
      24th Feb 2005
request wrote:

> 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,
--
http://www.joergjooss.de
mailto:news-(E-Mail Removed)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to get a httpwebrequest's response url Smokey Grindel Microsoft VB .NET 0 10th Mar 2007 10:56 PM
HttpWebRequest/Response and executionTimeout Rich Microsoft ASP .NET 0 6th Apr 2006 11:26 PM
How to use HttpWebRequest and get response back? =?Utf-8?B?S3VlaXNoaW9uZyBUdQ==?= Microsoft Dot NET 2 24th Aug 2004 02:01 PM
How to use HttpWebRequest and get response back? =?Utf-8?B?S3VlaXNoaW9uZyBUdQ==?= Microsoft VC .NET 1 24th Aug 2004 05:18 AM
HttpWebRequest/Response problem - HELP Taryon Microsoft C# .NET 10 1st Mar 2004 02:38 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:34 PM.