|
| Connecter un client Windev à un WebService avec NuSOAP |
| Iniciado por AntonioDev, 07,sep. 2020 17:03 - No hay respuesta |
| |
| | | |
|
| |
Miembro registrado 14 mensajes |
|
| Publicado el 07,septiembre 2020 - 17:03 |
Je souhaite me connecter à un WebService directement depuis Windev.
En PHP, cela fonctionne:
<?php require_once( "NuSOAP/nusoap-0.9.5/lib/nusoap.php" ); $wsdl = "https://ws.Antoine.top.com:4234/ws/mv/gestion.php?WSDL"; $client = new nusoap_client($wsdl,False); $err = $client->getError();
$datos = array("user" => "Antoine", "pass" => "Antoine" , "actif" => "OUI"); $result = $client->call("getOK", array($datos)); Avec Windev:
SOAP.Nom[1] = "user" SOAP.Valeur[1] = "Antoine" SOAP.Type[1] = SOAPTypeChaîne SOAP.Nom[2] = "pass" SOAP.Valeur[2] = "Antoine" SOAP.Type[2] = SOAPTypeChaîne SOAP.Nom[3] = "actif" SOAP.Valeur[3] = "OUI" SOAP.Type[3] = SOAPTypeChaîne
ResExécution = SOAPExécute( "https://ws.Antoine.top.com:4234/ws/mv/gestion.php?WSDL" ,"getOK" )
Cela ne fonctionne pas car il manque tout le traitement de codification et sérialisation que réalisé par NuSOAP sur les paramètres envoyés.
Existe t'il une version de NuSOAP pouvant-être exécuté directement par Windev, sans serveur Web?, une CLASSE NuSOAP Windev?
-- Olé |
| |
| |
| | | |
|
| | | | |
| | |
|