WSGescom


Cliquez ici pour une liste complète des opérations.

AddOrUpdateContratById

Insert un nouveau contrat ou update le contrat d'ID id s'il existe

Test

Le formulaire de test est uniquement disponible pour les demandes de l'ordinateur local.

SOAP 1.1

Le texte suivant est un exemple de demande et de réponse SOAP 1.1. Les espaces réservés affichés doivent être remplacés par des valeurs réelles.

POST /WebServices/Gescom/WSGescom.asmx HTTP/1.1
Host: iparlademo.lc2l-informatique.fr
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://lc2l-informatique.fr/AddOrUpdateContratById"

<?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>
    <AddOrUpdateContratById xmlns="http://lc2l-informatique.fr/">
      <contrat>
        <SocieteCode>string</SocieteCode>
        <ContratCode>string</ContratCode>
        <ContratLibelle>string</ContratLibelle>
        <TiersCode>string</TiersCode>
        <TiersTypeCode>string</TiersTypeCode>
        <ArticleCode>string</ArticleCode>
        <ArticleTypeCode>string</ArticleTypeCode>
        <ContratQuantiteContrat>double</ContratQuantiteContrat>
        <ContratDateDebut>string</ContratDateDebut>
        <ContratDateFin>string</ContratDateFin>
        <ContratDureeVie>int</ContratDureeVie>
        <ContratPrix>double</ContratPrix>
        <ContratCommentaire>string</ContratCommentaire>
        <ContratStatutCode>string</ContratStatutCode>
      </contrat>
    </AddOrUpdateContratById>
  </soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length

<?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>
    <AddOrUpdateContratByIdResponse xmlns="http://lc2l-informatique.fr/">
      <AddOrUpdateContratByIdResult>long</AddOrUpdateContratByIdResult>
    </AddOrUpdateContratByIdResponse>
  </soap:Body>
</soap:Envelope>

SOAP 1.2

Le texte suivant est un exemple de demande et de réponse SOAP 1.2. Les espaces réservés affichés doivent être remplacés par des valeurs réelles.

POST /WebServices/Gescom/WSGescom.asmx HTTP/1.1
Host: iparlademo.lc2l-informatique.fr
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddOrUpdateContratById xmlns="http://lc2l-informatique.fr/">
      <contrat>
        <SocieteCode>string</SocieteCode>
        <ContratCode>string</ContratCode>
        <ContratLibelle>string</ContratLibelle>
        <TiersCode>string</TiersCode>
        <TiersTypeCode>string</TiersTypeCode>
        <ArticleCode>string</ArticleCode>
        <ArticleTypeCode>string</ArticleTypeCode>
        <ContratQuantiteContrat>double</ContratQuantiteContrat>
        <ContratDateDebut>string</ContratDateDebut>
        <ContratDateFin>string</ContratDateFin>
        <ContratDureeVie>int</ContratDureeVie>
        <ContratPrix>double</ContratPrix>
        <ContratCommentaire>string</ContratCommentaire>
        <ContratStatutCode>string</ContratStatutCode>
      </contrat>
    </AddOrUpdateContratById>
  </soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/soap+xml; charset=utf-8
Content-Length: length

<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
  <soap12:Body>
    <AddOrUpdateContratByIdResponse xmlns="http://lc2l-informatique.fr/">
      <AddOrUpdateContratByIdResult>long</AddOrUpdateContratByIdResult>
    </AddOrUpdateContratByIdResponse>
  </soap12:Body>
</soap12:Envelope>