Le forum (ô combien francophone) des utilisateurs de Powerbuilder.
Bonjour à Tous
OK j'ai trouve ,je passe le code ca peut servir
Cordialement
Pour Infos
Une fois le project crée avec Web Service Prowy Wizard.
ATTENTION ne pas oublier de récupérer pbsoapclient105.pbd
celle ci contient les 2 OBJ soapconnection et soapexception
String StResultat String StParam long ret SetNull(StResultat) StParam = "abcd" - Pour teste SoapConnection conn facturesoap proxy //ServiceProxy is a proxy generated by Web service //wizard TRY conn = CREATE SoapConnection ret = conn.CreateInstance(proxy, "facturesoap") IF (ret <> 0)then MessageBox("Fail", "Cannot create proxy "+ "facturesoap") ELSE //StResultat = proxy.helloworld(StParam) StResultat = proxy.helloworld() MessageBox("WebService OK ", "Return String -> '" + StResultat) END IF CATCH (SoapException e1) MessageBox("WebService KO SoapException" , "Invoke Service 'Helloworld'") CATCH (PBXRuntimeError e2) MessageBox("WebService KO PBXRuntimeError", "Invoke Service 'Helloworld'") CATCH (RuntimeError e3) MessageBox("WebService KO RuntimeError" , "Invoke Service 'Helloworld'") END TRY
Hors ligne
Bonjour,
En fait je fais un copier coller de ton code via PB..j appelle exactement le meme webservice "helloword"
Mais a la compil, PB me sort des Illegal data type sur Facturesoap???
Aurais tu une idée?..je suis en PB 10.0 et j ai ajouté pbsoapclient100.pbd
Hors ligne
Maintenant ca marche..
mais j ai un autre probleme..
Quand je load via proxy wizard, j ai des erreurs de compilation
Error: The object s1__kmehrrequesttransdetail had fatal compile error(s). The source for s1__...
Error: The object s1__kmehrrequesttranslist had fatal compile error(s). The source for s1__...
Warning: A full or incremental rebuild should be performed. The following object(s) may not be usable in their present state. mainsoap
---------- Finished Deploy of p_ws_proxy
Voila..
et quand je regenere mon module, j ai
---------- Regenerate:
---------- Regenerating Object mainsoap
wa_umt.pbl(mainsoap).88: Error C0001: Illegal data type: s1__kmehrrequesttransdetail
---------- Done Regenerating Object mainsoap
---------- Finished
Kelk un a une idée?
Hors ligne
vous n'avez pas fait de tuto sur les webservices par hasard?
si vous avez de la doc sur les webservices je vous en serai reconnaissant
Hors ligne
Moi, de même
Hors ligne