[SOAP] Invoke en ligne de commande
Bonjour,
voila je voudrais appeler un service Web SOAP (sur une serveur IIS/ASP.net) avec une tache planifiée.
pour cela il me suffit d'accéder à la page /mail_echeance.asmx de mon application en passant à IIS la requete suivante contenu dans soap.txt :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
|
POST /c_ihm/batch/mail_echeance.asmx HTTP/1.1
Host: sqkp0
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://tempuri.org/Envoyer"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<Envoyer xmlns="http://tempuri.org/">
<reporting>string</reporting>
<destinataire>string</destinataire>
</Envoyer>
</soap:Body>
</soap:Envelope> |
jessaye de la passer avec Telenet avec la commande :
Code:
telnet 81 < soap.txt
mais ca marche pas, la requete passa pas à IIS correctement, alors que qd je fais un copier coller, c'est ok.
auriez vous une solution (completement autre eventuellement) pour invoquer un service SOAP avec un tache planifiée ?
merci