PreviousNext
Help > Développement > Fonctions W-Langage pour AS/400 > Fonctions Appel de Programmes/Procédure > Easycom XML > ASXMLAppelPgm >
Détail


L’échange d’informations entre le programme as400 et windev se fait via XML. Les paramètres d’entrée du programme doivent être envoyés dans un format XML correspondant à la structure attendue par le programme.

Exemple de XML en entréé de ASXMLAppelPgm pour l’appel de RPCSAMPLE :

<?xml version="1.0"  encoding="UTF-8" ?>

<Easycom Version="02.02.004">

 <Program Name="RPCSAMPLE">

   <ParameterList>

      <OP1>2</OP1>

      <STR1>aura</STR1>

      <OP2>3</OP2>

      <STR2>test</STR2>

      <OP3>4</OP3>

 </ParameterList>

 </Program>

</Easycom>

 

 

Les valeurs de retour sont également au format XML, à l’aide du tag particulier  <PARAMETERLIST> :

<?xml version="1.0"  encoding="UTF-8" ?>

<Easycom Version="2.01">

<Program Name="RPCSAMPLE">

   <ParameterList>

     <OP2 Type="Packed">5.00</OP2>

     <STR2 Type="Char">aura</STR2>

     <OP3 Type="Packed">6.0000</OP3>

   </ParameterList>

 </Program>