This is not going to work. The message is telling you you cannot use urlencode on xml. You will need to find another way to send your xml rather that via a URL. Please provide more info about what you are trying to achieve.
http://www.axeria-iard.fr/Sitetest/extranet/pushxml/receiver.asp
Above is the URL on which i have to send a request in xmlString and read the response, the problem is the error which i am getting while posting the page in asp.net(using c#).
The XML string and the code is mentioned below :
string req = "<?xml version='1.0'?>";
req = req + "<DEVISAUTO>";
req = req + "<MODE>TAR</MODE>";
req = req + "<CP>38300</CP>";
req = req + "<DPMC>01/01/2005</DPMC>";
req = req + "<SEXE>MA</SEXE>";
req = req + "<CSP>6</CSP>";
req = req + "<DNAIS>01/01/1960</DNAIS>";
req = req + "<DPERM>01/09/1980</DPERM>";
req = req + "<USAG>2</USAG>";
req = req + "<GTA>RE51013</GTA>";
req = req + "<BONUS>0.72</BONUS>";
req = req + "<FORM>C</FORM>";
req = req + "<TGAR>BC</TGAR>";
req = req + "<CEXL>O</CEXL>";
req = req + "<MULDET>N</MULDET>";
req = req + "<NBENF>1</NBENF>";
req = req + "<PLAOBJ>0</PLAOBJ>";
req = req + "<PLAACC>0</PLAACC>";
req = req + "</DEVISAUTO>";
string msgBody = req;
HttpWebRequest request = (HttpWebRequest)WebRequest.Create ("http://www.axeria-iard.fr/Sitetest/extranet/pushxml/receiver.asp?" + msgBody );
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
String ver = response.ProtocolVersion.ToString();
StreamReader reader = new StreamReader(response.GetResponseStream() );
string str = reader.ReadLine();
while(str != null)
{
Response.Write (str);
str = reader.ReadLine();
}
above is the code which i am using , please help
Thanks
Manish