1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117
| <HTML>
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function construitxml()
{
var requete;
requete="<soap:Envelope xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsi=\"http://www.w3.org/1999/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/1999/XMLSchema\"><soap:body>";
requete = requete + "<gINSERT_DOCUMENT_Domaine_2 xmlns=\"WEBLyneade\">";
requete = requete + "<sTypeDoc xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sTypeDoc.value;
requete = requete + "</sTypeDoc>";
requete = requete + "<sCodeEts xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sCodeEts.value;
requete = requete + "</sCodeEts>";
requete = requete + "<sSouche xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sSouche.value;
requete = requete + "</sSouche>";
requete = requete + "<sCodeDepot xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sCodeDepot.value;
requete = requete + "</sCodeDepot>";
requete = requete + "<sCodeTiers xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sCodeTiers.value;
requete = requete + "</sCodeTiers>";
requete = requete + "<sDate xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sDate.value;
requete = requete + "</sDate>";
requete = requete + "<sCodeRepresentant xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sCodeRepresentant.value;
requete = requete + "</sCodeRepresentant>";
requete = requete + "<sNumeroDocument xsd:type=\"xsd:string\">";
requete = requete + document.valeur.sNumeroDocument.value;
requete = requete + "</sNumeroDocument>";
requete = requete + "</gINSERT_DOCUMENT_Domaine_2></soap:body><soap:Envelope>";
document.xmlform.xml.value=requete;
document.xmlform.submit();
}
</SCRIPT>
</HEAD>
<BODY>
<?
$p1=$_GET['sTypeDoc'];
$p2=$_GET['sCodeEts'];
$p3=$_GET['sSouche'];
$p4=$_GET['sCodeDepot'];
$p5=$_GET['sCodeTiers'];
$p6=$_GET['sDate'];
$p7=$_GET['sCodeRepresentant'];
$p8='';
?>
<form name="valeur" id="valeur">
<TABLE>
<TR>
<TD>Paramètre</TD>
<TD>Valeur</TD>
</TR>
<TR>
<TD>sTypeDoc:</TD>
<TD><INPUT size=50 name="sTypeDoc" value="<? echo $p1;?>"></TD>
</TR>
<TR>
<TD>sCodeEts:</TD>
<TD><INPUT class=frmInput size=50 name="sCodeEts" value="<? echo $p2;?>"></TD>
</TR>
<TR>
<TD>sSouche:</TD>
<TD><INPUT size=50 name="sSouche" value="<? echo $p3;?>"></TD>
</TR>
<TR>
<TD>sCodeDepot:</TD>
<TD><INPUT size=50 name="sCodeDepot" value="<? echo $p4;?>"></TD>
</TR>
<TR>
<TD>sCodeTiers:</TD>
<TD><INPUT size=50 name="sCodeTiers" value="<? echo $p5;?>"></TD>
</TR>
<TR>
<TD>sDate:</TD>
<TD><INPUT size=50 name="sDate" value="<? echo $p6;?>"></TD>
</TR>
<TR>
<TD>sCodeRepresentant:</TD>
<TD><INPUT size=50 name="sCodeRepresentant" value="<? echo $p7;?>"></TD>
</TR>
<TR>
<TD>sNumeroDocument:</TD>
<TD><INPUT size=50 name="sNumeroDocument" value="<? echo $p8;?>"></TD>
</TR>
<TR>
<TD></TD>
<TD align=right><INPUT class=button type=button value=Test onclick="construitxml()";></TD>
</TR>
</TABLE>
</form>
<form action="http://IPDUSERVEUR/WEBLyneade.soap" method=post name="xmlform" id="xmlform" target="_blank">
<input type="hidden" value="" name="xml" id="xml">
</form>
</BODY>
</HTML> |
Partager