Hi Kuldeep, I've tried streaming my data as UTF8 and ASCII encoded bytes like the link says but I keep returning 0. This is my code below.
string strKey = "mykey";
string strXML = this.GetTextFromXMLFile(fi
Uri httpsURI = new Uri("https://www.jsppage.c
ASCIIEncoding encoding = new ASCIIEncoding();
string postData = "key=" + strKey;
postData += ("&xml=" + strXML);
byte[] data = encoding.GetBytes(postData
// Prepare web request...
//HttpWebRequest myRequest =
// (HttpWebRequest)WebRequest
WebRequest myRequest = WebRequest.Create(httpsURI
myRequest.Method = "POST";
myRequest.ContentType = "application/x-www-form-ur
myRequest.ContentLength = postData.Length;
Stream RequestStream = myRequest.GetRequestStream
// Send the data.
RequestStream.Write(data, 0, data.Length);
RequestStream.Close();
WebResponse AMAResponse = myRequest.GetResponse();
string serverResponse = "";
Stream responseStream = AMAResponse.GetResponseStr
StreamReader sr = new StreamReader(responseStrea
serverResponse = sr.ReadToEnd();
ret = serverResponse.Trim();
Main Topics
Browse All Topics





by: KuldeepchaturvediPosted on 2009-01-29 at 05:23:11ID: 23496874
See if this helps..
rakker/arc hive/2006/ 04/21/ 7604 4.aspx
http://geekswithblogs.net/
Basically for XML you can have the XML in a string and then pass it as parameter..