PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → consomation WS DocuSign soap avec Authentification
consomation WS DocuSign soap avec Authentification
Iniciado por Khaery, 12,mar. 2019 12:48 - 1 respuesta
Miembro registrado
52 mensajes
Publicado el 12,marzo 2019 - 12:48
Bonjour les amis
j'ai un problem de ce connécté a un serveur soap avec Authentification
voici mon code:
sAut est chaîne =[

***********
**********************************

]


SOAPAjouteEntête("DSAPIService","X-DocuSign-Authentication",sAut)
sMsg est chaîne =
[





2a544bb1-9993-4318-bd2a-8c5bc4477f32



]

bResexe est un booléen =SOAPExécuteXML("https://demo.docusign.net/api/3.0/dsapi.asmx?WSDL",sMsg)
SI bResexe ALORS
Info(SOAPDonneRésultat((SOAPRésultat)))
SINON
Info(SOAPErreur(SOAPErrMessage))
Info(ErreurInfo(errComplet))
Info(SOAPDonneRésultat((SOAPRésultat)))
FIN



voici le msg d'erreur :

Le serveur a bien retourné une réponse, mais il ne s'agit pas d'une enveloppe SOAP. Vous pouvez traiter cette réponse avec SOAPDonneRésultat(SOAPRésultatXML) ou SOAPDonneRésultat(SOAPRésultatHTTP)

j'ai essayer sur SoapUI et le WS marche bien
Merci d'avance

--
La vérité est une, le mensonge est multiple.
Miembro registrado
52 mensajes
Publicado el 12,marzo 2019 - 17:30
voici le code je m'excuse pour le typo :

sAut est chaîne =[
<DocuSignCredentials>
<Username>*****</Username>
<Password>*******</Password><IntegratorKey>2a544bb1-9993-4318-bd2a-8c5bc4477f32</IntegratorKey>
</DocuSignCredentials>
]


SOAPAjouteEntête("DSAPIService","X-DocuSign-Authentication",sAut)
sMsg est chaîne =
[
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ns="http://www.docusign.net/API/3.0">
<soap:Header/>
<soap:Body>
<ns:RequestStatusEx>
<!--Optional:-->
<ns:EnvelopeID>2a544bb1-9993-4318-bd2a-8c5bc4477f32</ns:EnvelopeID>
</ns:RequestStatusEx>
</soap:Body>
</soap:Envelope>
]

bResexe est un booléen =SOAPExécuteXML("https://demo.docusign.net/api/3.0/dsapi.asmx…)
SI bResexe ALORS
Info(SOAPDonneRésultat((SOAPRésultat)))
SINON
Info(SOAPErreur(SOAPErrMessage))
Info(ErreurInfo(errComplet))

FIN

--
La vérité est une, le mensonge est multiple.
Mensaje modificado, 12,marzo 2019 - 17:31