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.Crea te(target);
string request = "<ARCXML
version='1.1'>< REQUEST><GET_IM AGE><PROPERTIES ></PROPERTIES></GET_IMAGE><
/REQUEST></ARCXML>";
encoding = new UTF8Encoding();
byte[] byte1 = encoding.GetByt es(request); httprequest.Con tentLength =
request.Length;
httprequest.Met hod = "POST";
httprequest.Con tentType = "text/xml; encoding='utf-8'";
requestStream = httprequest.Get RequestStream() ;
requestStream.W rite(byte1, 0, byte1.Length);
requestStream.C lose();
code end--------------------------------------------------
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!