string Data = "<?xml version=\"1.0\" encoding=\"utf-8\"
?>" +
"<request>" +
"<header>" +
"<username>awesome</username>" +
"<password>xmlrocks</password>" +
"</header>" +
"<body>" +
"<shape>round</shape>" +
"</body>" +
"</request>";
string URL =
"https://technet.rapaport.com/HTTP/SimpleXML/Prices/GetPriceSheet.aspx";
WebRequest webRequest =
WebRequest.Create(URL);
webRequest.Method =
"POST";
webRequest.ContentType =
"application/x-www-form-urlencoded";
Stream reqStream = webRequest.GetRequestStream();
string postData = Data;
byte[] postArray =
Encoding.ASCII.GetBytes(postData);
reqStream.Write(postArray, 0, postArray.Length);
reqStream.Close();
StreamReader sr =
new
StreamReader(webRequest.GetResponse().GetResponseStream());
string Result = sr.ReadToEnd();