my response o/p store in the responsedata so I want to display the inforamtion of
responsedata on my browser. how to Serialize/DeSerialize the
responsedata information.
code mentioned below:-
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
{
StreamReader responsereader = new StreamReader(response.GetResponseStream());
string responsedata = responsereader.ReadToEnd();
responsereader.Close();
request.GetResponse().Close();
}
Anurag Bamboria
Mark as Answer:- if the post helped you...
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(responsedata);
It's give exception :- System.UriFormatException: Invalid URI: The Uri string is too long.
Anurag Bamboria
Mark as Answer:- if the post helped you...
abamboria
Member
149 Points
90 Posts
XML Serialization/DeSerialization ?
Jan 04, 2013 02:10 PM|LINK
Hello,
my response o/p store in the responsedata so I want to display the inforamtion of responsedata on my browser. how to Serialize/DeSerialize the responsedata information.
code mentioned below:-
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { StreamReader responsereader = new StreamReader(response.GetResponseStream()); string responsedata = responsereader.ReadToEnd(); responsereader.Close(); request.GetResponse().Close(); }Mark as Answer:- if the post helped you...
sameer_khanj...
Contributor
7066 Points
1381 Posts
Re: XML Serialization/DeSerialization ?
Jan 04, 2013 03:38 PM|LINK
Please check
http://stackoverflow.com/questions/4143421/fastest-way-to-serialize-and-deserialize-net-object
sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.
abamboria
Member
149 Points
90 Posts
Re: XML Serialization/DeSerialization ?
Jan 05, 2013 09:25 AM|LINK
Thanks for help,
but i am not getting information in this link. If you provide some other info to related my code. this is good for me.
Mark as Answer:- if the post helped you...
sameer_khanj...
Contributor
7066 Points
1381 Posts
Re: XML Serialization/DeSerialization ?
Jan 07, 2013 06:19 AM|LINK
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { StreamReader responsereader = new StreamReader(response.GetResponseStream()); string responsedata = responsereader.ReadToEnd(); responsereader.Close(); request.GetResponse().Close(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(responsedata); }sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.
abamboria
Member
149 Points
90 Posts
Re: XML Serialization/DeSerialization ?
Jan 07, 2013 06:47 AM|LINK
Hello sameer,
when I used ,
Mark as Answer:- if the post helped you...
sameer_khanj...
Contributor
7066 Points
1381 Posts
Re: XML Serialization/DeSerialization ?
Jan 07, 2013 06:52 AM|LINK
Please read below Link may help you
http://www.xmlplease.com/create-xml-string
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse()) { StreamReader responsereader = new StreamReader(response.GetResponseStream()); string responsedata = responsereader.ReadToEnd(); responsereader.Close(); request.GetResponse().Close(); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXML(responsedata); }sameer.khanjit@gmail.com
View Blog
Click "Mark as Answer" on the post that helped you.