Commit d6372bd1 authored by Tiemo Bang's avatar Tiemo Bang

Changed index.php

parent 4b7acdbe
<?php
if(isset($_GET["dump"]))var_dump($res);
if(isset($_GET["port"])){
$client = NULL;
if(isset($_GET["async"])){
$client = new SoapClient("ConductOrder84AsyncArtifacts2.wsdl");
$client->__setLocation("http://46.101.159.46:".$_GET['port']."/ode/processes/ConductOrder84/");
}
else {
$client = new SoapClient("ConductOrder84AsyncArtifacts2.wsdl");
$client->__setLocation("http://46.101.159.46:".$_GET['port']."/ode/processes/ConductOrder84/");
}
$client = NULL;
if(isset($_GET["async"])){
$client = new SoapClient("ConductOrder84AsyncArtifacts2.wsdl");
$client->__setLocation("http://46.101.159.46:".$_GET['port']."/ode/processes/ConductOrder84/");
}
else {
$client = new SoapClient("ConductOrder84AsyncArtifacts2.wsdl");
$client->__setLocation("http://46.101.159.46:".$_GET['port']."/ode/processes/ConductOrder84/");
}
$start = microtime(true);
$res = $client->process(array('customerId' => "test", 'products' => array(), 'shippingAddress' => 'shippingAddress', 'paymentDetails' => array('bankName' => 'bankName', 'bankAddress' => 'bankAddress', 'accountNumber' => 'accountNumber', 'accountHolderName' => 'accountHolderName')));
$end = microtime(true);
if(isset($_GET["dump"]))var_dump($res);
$start = microtime(true);
$res = $client->process(array('customerId' => "test", 'products' => array(), 'shippingAddress' => 'shippingAddress', 'paymentDetails' => array('bankName' => 'bankName', 'bankAddress' => 'bankAddress', 'accountNumber' => 'accountNumber', 'accountHolderName' => 'accountHolderName')));
$end = microtime(true);
?>
<h1><?= $res->result ?></h1>
......@@ -70,10 +69,13 @@ if(isset($_GET["dump"]))var_dump($res);
</form>
<p id="out"></p>
<div style="float:left; max-width: 49%" id="left">
<h2 style="background: lightgray;" >NO RESPONSE YET!</h2>
</div>
<div style="float:right; max-width: 49%; border-left: 1px solid;padding-left: 5px;" id="right">
<div style="float:left; max-width: 49%; border-left: 1px solid;padding-left: 5px;" id="right">
<h2 style="background: lightgray;" >NO RESPONSE YET!</h2>
</div>
<script>
var port = 32850;
var out = document.getElementById("out");
var left = document.getElementById("left");
var right = document.getElementById("right");
......@@ -100,7 +102,7 @@ xmlTest.addEventListener("load", () => {
}, false);
xsltResponse.load('ResponseToHTML.xsl');*/
xhr.open("GET", window.location.href+"?port=33005", true);
xhr.open("GET", window.location.href+"?port="+port, true);
xhr.send();
xhr.onreadystatechange = (e) => {
......
......@@ -382,7 +382,9 @@
<![CDATA["http://46.101.159.46:33005/ode/processes/IntentoryCallbackService"]]>
<![CDATA["http://46.101.159.46:32850/ode/processes/IntentoryCallbackService"]]>
</bpel:from>
<bpel:to part="checkAvailabilityAsyncInput" variable="InventoryPLRequest">
<bpel:query queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0"><![CDATA[ns:callbackUrl]]></bpel:query>
......
......@@ -18,7 +18,7 @@
</extensions>
<extensions>
<extendedObject href="ConductOrder84.bpel#/"/>
<extensionObject xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension" modificationStamp="1480546883457" processName="{group12}ConductOrder84" processVersion="8"/>
<extensionObject xsi:type="org.eclipse.bpel.ui.uiextensionmodel:ProcessExtension" modificationStamp="1481143270196" processName="{group12}ConductOrder84" processVersion="1"/>
</extensions>
<extensions>
<extendedObject href="ConductOrder84.bpel#//@activity/@activities.1/@activity"/>
......
......@@ -17552,4 +17552,16 @@
<parentElement elementType="if" elementName="EmptyRequest" elementXPath="/process/sequence[1]/if[1]"/>
<newElement elementType="assign" elementName="InitStuff" elementXPath="/process/sequence[1]/assign[1]"/>
</modelChange>
<modelChange xsi:type="bplog:ValueChange" changeReason="TextChanged" timestamp="2016-12-07T21:41:10.105+0100">
<containingElement elementType="from" elementName="" elementXPath="/process/sequence[1]/flow[1]/sequence[2]/assign[1]/copy[4]/from[1]"/>
<attribute attributeName="text" oldValue="&quot;http://46.101.159.46:32845/ode/processes/IntentoryCallbackService&quot;" newValue="&quot;http://46.101.159.46:32850/ode/processes/IntentoryCallbackService&quot;"/>
</modelChange>
<modelChange xsi:type="bplog:ValueChange" changeReason="AttributeChanged" timestamp="2016-12-07T21:41:10.117+0100">
<containingElement elementType="from" elementName="" elementXPath="/process/sequence[1]/flow[1]/sequence[2]/assign[1]/copy[4]/from[1]"/>
<attribute attributeName="expressionLanguage" oldValue=""/>
</modelChange>
<modelChange xsi:type="bplog:ValueChange" changeReason="AttributeChanged" timestamp="2016-12-07T21:41:10.122+0100">
<containingElement elementType="from" elementName="" elementXPath="/process/sequence[1]/flow[1]/sequence[2]/assign[1]/copy[4]/from[1]"/>
<attribute attributeName="expressionLanguage" oldValue=""/>
</modelChange>
</bplog:Log>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment