Bonjour,



Voici mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
 
 
            HttpWebResponse response;
            XmlDocument xmlDoc = new XmlDocument();
            try {
                // Avant
 
                response = createMPITransaction(args[0], args[1], args[2], args[3], args[4]);
                string responseString = new StreamReader(response.GetResponseStream()).ReadToEnd();
                xmlDoc.LoadXml(responseString);
 
            }
 
            catch (Exception ex) {
                log("Problem connecting to Credit Guard. Error: " + ex.Message);
                return;
            }
lors de l'execution dela ligne xmlDoc.LoadXml.... il passe directement au catch avec comme exception " "'content' is an unexpected token. Expecting white space. Line 1, position 136."


mon responseString a l'air de ca (1ere ligne) . position 136 c effectivement le content.

"<!--RCS:@(#)$Id:login.html,v 1.52.4.2.2.7.2.3 2016/01/31 12:01:14 yahalom Exp $--><html dir=\"rtl\"><head><meta http-equiv=\"content-type\"><content=\"text/html;charset=windows-1255\"><title>CG Gateway-Login</title><link rel=\"stylesheet\"type=\"text/css\"href=\"../css/common.css\"><link rel=\"shortcut icon\"href=\"../favicon.ico\"type=\"image/x-icon\"><script type=\"text/javascript\">\n<!-- \n_csrf_ = { pn ........................................................................................




Merci de votre aide tres precieuse.