Hello, I'm trying to port an application written in ASP to ASP.Net and I'm having some problemsMy
ASP application communed with Navision Attain (NAS) through HTTP
requests (server side) and I am trying to recreate this functionality
with ASP.NetI have tried in various ways, including:string postData = "<root><text hello</ text></ root>";
ASCIIEncoding ASCIIEncoding encode = new ();
byte  dataEncode = encode.GetBytes (postData)
string url = "urltoNAS"
HttpWebRequest req = (HttpWebRequest) WebRequest.Create (url);
req.Method = "POST";
req.ContentType = "application / x-www-form-urlencoded";
req.ContentLength = dataEncode.Length;
Stream st = req.GetRequestStream ();
st.Write (dataEncode, 0, dataEncode.Length)
st.Close (); But I have not got NAS read my XML document.Could anyone give me some suggestion on how to do?Forgive me if poorly drafted, my native language is not English.
View Complete Post