<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.fr.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Aug 2019 11:16:34 Z</lastBuildDate><pubDate>13 Aug 2019 16:40:26 Z</pubDate><description>Bonjour,&#13;
&#13;
Je dois contacter un webservice réalisé par un autre service de ma boite. Celui-ci comprend des entêtes à intégrer pour authentification et est accessible en https.&#13;
&#13;
Via chrome et edge, l'url me renvoit un certficat invalide et si je poursuis quand même j'obtiens une réponse json du genre &#13;
&#13;
{&#13;
code: "CONSTRAINT VALIDATION_ERROR",&#13;
message: "erreur de validation des paramètres",&#13;
errors: [&#13;
{&#13;
nomParam: "getRessource.arg2",&#13;
codeError: "NotNullValidator",&#13;
message: "value '' : may not be null"&#13;
},&#13;
{&#13;
nomParam: "getRessource.arg1",&#13;
codeError: "NotNullValidator",&#13;
message: "value '' : may not be null"&#13;
},&#13;
{&#13;
nomParam: "getRessource.arg0",&#13;
codeError: "NotNullValidator",&#13;
message: "value '' : may not be null"&#13;
}&#13;
]&#13;
}&#13;
&#13;
ce qui est normal, je n'ai pas placé d'entête.&#13;
Si je fais la même manipulation sous internet explorer j'obtiens un résultat différent, j'ai l'alerte de cetificat invalide et si je poursuis j'obtiens un beau erreur 400 page web introuvable. &#13;
Avec mon programme windev 22, j'ai l'impression que je tombe sur le même résultat (utilisation des bibliothèques internet explorer?), j'obtiens systématiquement un code retour 0 ce qui correspondrait à une inaccessibilité au site, que je lance une commande de paramétrage de proxy ou non (ligne en commentaire dans le code) :&#13;
&#13;
[code:wl]&#13;
MarequeteREST est un restRequête&#13;
MaReponseREST est un restRéponse&#13;
RequeteParametree est une chaîne = adresseWbs + complementURL + "%1"&#13;
ContenuReponse est une chaîne&#13;
MarequeteREST.Méthode = httpGet&#13;
//MarequeteREST.VersionSSL = ProtocoleTLS1&#13;
MarequeteREST.TimeOutConnexion 	= timeOut&#13;
MarequeteREST.DuréeNonRéponse 	= timeOut&#13;
MarequeteREST..Header["x-site"] = "SITE"&#13;
MarequeteREST..Header["x-dossier"] = "DOSSITE"&#13;
MarequeteREST..Header["x-magasin"] = "12"&#13;
MarequeteREST..Header["x-utilisateur"] = "oneuser"&#13;
MarequeteREST..Header["Accept-Language"] = "FR"&#13;
MarequeteREST..Header["Accept"] = "application/json"&#13;
MarequeteREST..IgnoreErreur = httpIgnoreCertificatInvalide+httpIgnoreCertificatExpiré+httpIgnoreNomCertificatInvalide+httpIgnoreRenvoiHTTP+httpIgnoreRenvoiHTTPS+httpIgnoreRedirection&#13;
&#13;
MarequeteREST.URL = RequeteParametree&#13;
TracerDebug("Appel du webservice " + RequeteParametree)&#13;
//Proxy("xxx.xxx.xxx.xxx", 80, "login", "mdp")&#13;
MaReponseREST = RESTEnvoie(MarequeteREST)&#13;
SELON MaReponseREST..CodeEtat&#13;
	CAS 200, 201, 206 : &#13;
		SI ErreurDétectée ALORS&#13;
			&#13;
		SINON&#13;
			ContenuReponse = MaReponseREST.Contenu&#13;
			RENVOYER ContenuReponse&#13;
		FIN&#13;
		RENVOYER ""&#13;
	CAS 202 :&#13;
		ContenuReponse = MaReponseREST.Contenu&#13;
		RENVOYER ContenuReponse&#13;
	CAS 204 :&#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 301 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 302 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 400 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 401 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 403 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 404 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 405 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 406 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 500 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	CAS 503 : &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
	AUTRE CAS &#13;
		RENVOYER MaReponseREST..CodeEtat + RC + MaReponseREST..DescriptionCodeEtat&#13;
FIN&#13;
[/code]&#13;
&#13;
Quelqu'un aurait une idée?&#13;
Merci.</description><ttl>30</ttl><generator>WEBDEV</generator><language>fr_FR</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest/read.awp</link><title>webservice rest</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>ylmeti</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232246/read.awp</comments><pubDate>14 Aug 2019 11:16:34 Z</pubDate><description>Salut, merci pour la réponse mais j'ai trouvé. &#13;
C'est pas en rapport avec le webservice ni internet explorer, c'est juste le ti…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232246/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232246/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest/read.awp">webservice rest</source><title>Re: webservice rest</title></item><item><author>Daryl</author><category>pcsoft.fr.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232234/read.awp</comments><pubDate>13 Aug 2019 19:54:20 Z</pubDate><description>Salut ylmeti,&#13;
&#13;
Je sais que ça ne va pas t'aider, mais ça ne serait pas plus simple de voir directement avec le service de ta b…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232234/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest-232234/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.fr.windev/232228-webservice-rest/read.awp">webservice rest</source><title>Re: webservice rest</title></item></channel></rss>
