Hy
I have a problem with sending a request to an ArcIMS server. The data
never reaches the server and I get the following error message:
...
AXLParser: Document cannot be parsed correctly. Check encoding.
...
Please have a look at my code and tell me what I'm doing wrong!
Thanks
code start-----------------------------------------------
httprequest = (HttpWebRequest) WebRequest.Create(target);
string request = "<ARCXML
version='1.1'><REQUEST><GET_IMAGE><PROPERTIES></PROPERTIES></GET_IMAGE><
/REQUEST></ARCXML>";
encoding = new UTF8Encoding();
byte[] byte1 = encoding.GetBytes(request); httprequest.ContentLength =
request.Length;
httprequest.Method = "POST";
httprequest.ContentType = "text/xml; encoding='utf-8'";
requestStream = httprequest.GetRequestStream();
requestStream.Write(byte1, 0, byte1.Length);
requestStream.Close();
code end--------------------------------------------------
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!