PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2025 → SOAPExecute vs SOAPExecuteXML
SOAPExecute vs SOAPExecuteXML
Iniciado por pierre.bertrand, 24,feb. 2018 16:10 - No hay respuesta
Publicado el 24,febrero 2018 - 16:10
Bonjour,

Je dois utiliser un webservice dont le wsdl que j'importe ne contient pas toutes les méthodes possibles.

Si j'utilise le code ci-dessous, cela fonctionne.
sOrderListXMLCpl est une chaîne=[
[code:xml]
<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:impl="http://impl.webservice.ubench.com">
<soapenv:Header/>
<soapenv:Body>
<impl:askOrder soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<request xsi:type="xsd:string">
<![CDATA[
<askOrder>
<credentials>
<serviceowner></serviceowner>
<username> WS_TEST</username>
<password>sDT299998</password>
<dossierid>16021925041</dossierid>
</credentials>
</askOrder>]]>
</request>
</impl:askOrder>
</soapenv:Body>
</soapenv:Envelope>
]

SI PAS SOAPExécuteXML("https://test.ubenchinternational.com:443/webservices/services/Infomax",sOrderListXMLCpl) ALORS

FIN

J'aimerais utiliser SOAPExecute en passant la requête askOrder en paramètre.

Comment feriez-vous pour formater la commande SOAPExecute ?

Merci d'avance
Pierre