MDUX#37895: Factuurmatching in financieel pakket laten plaatsvinden

svn path=/Website/branches/v2016.2/; revision=31031
This commit is contained in:
Marcel Bourseau
2016-10-11 08:48:25 +00:00
parent c2d18cf7f6
commit cda1193b0e

View File

@@ -0,0 +1,49 @@
<html>
<head>
<script type="text/javascript">
function doSubmit()
{
var http_request = window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP") : new XMLHttpRequest();
SXH_PROXY_SET_PROXY = 2
//http_request.setProxy(SXH_PROXY_SET_PROXY, "127.0.0.1:8888"); // Fiddler
var url = document.getElementById("url").value;
http_request.open("POST", url, false);
var body = document.getElementById("xml").value;
http_request.setRequestHeader("Content-Type", "text/xml; charset=utf-8")
http_request.send(body);
document.getElementById("Status").innerText = http_request.status;
document.getElementById("StatusText").innerText = http_request.statusText;
document.getElementById("Result").innerText = http_request.responseText;
}
</script>
</head>
<body style='background-color:#c0c0c0'>
<form method="post"
target="uitvoer">
<input id="url" type="text" style="width:800px"
value="https://mdux-a.facilitor.nl/?API=XXX&APIKEY=YYY"
xvalue="http://facws001/branch20162/?fac_id=MDUX&API=XXX&APIKEY=YYY">
<br>
<textarea id="xml" style="height:200px;width:800px">
<?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>
<GetBES4AX>
<bes_opdr_key_van>6300</bes_opdr_key_van>
<bes_lever_datum_van>2016-08-01T12:00:00</bes_lever_datum_van>
</GetBES4AX>
</soap:Body>
</soap:Envelope>
</textarea>
<input type="button" onclick="doSubmit()" value="Verstuur">
</form>
<table>
<tr><td>Status:</td><td><span id="Status"></span></td>
<tr><td>StatusText:</td><td><span id="StatusText"></span></td>
<tr><td>Result:</td><td style='border:1px solid blue;font-size:0.8em;'><xmp id="Result"></xmp></td>
</table>
</body>
</html>