mirror of
https://github.com/rn10950/RetroZilla.git
synced 2024-11-14 03:30:17 +01:00
111 lines
2.5 KiB
HTML
111 lines
2.5 KiB
HTML
<html><head>
|
|
<link rel="stylesheet" type="text/css" href="stylesheet.css"><title></title>
|
|
|
|
<script>
|
|
var proxy = null;
|
|
var wsdl_uri = "http://www.pocketsoap.com/services/ilab.wsdl";
|
|
|
|
function Translate (aValue)
|
|
{
|
|
|
|
aValue = document.getElementById("intvalue").value ;
|
|
if(!aValue)
|
|
{
|
|
alert("Please enter a value");
|
|
return ;
|
|
}
|
|
|
|
if (!proxy)
|
|
{
|
|
var listener = {
|
|
onLoad: function (aProxy)
|
|
{
|
|
proxy = aProxy;
|
|
proxy.setListener(listener);
|
|
requestTranslation(aValue);
|
|
},
|
|
|
|
onError: function (aError)
|
|
{
|
|
//alert("Error-" + aError);
|
|
resdiv = document.getElementById("result");
|
|
resdiv.innerHTML = "Result from server:"+"Error-" + aError ;
|
|
},
|
|
|
|
echoBase64Callback : function (aTranslatedValue)
|
|
{
|
|
//alert(aTranslatedValue);
|
|
resdiv = document.getElementById("result");
|
|
resdiv.innerHTML = "Result from server:" + aTranslatedValue ;
|
|
}
|
|
};
|
|
createProxy(listener);
|
|
}
|
|
else {
|
|
requestTranslation(aValue);
|
|
}
|
|
}
|
|
|
|
function createProxy(aCreationListener)
|
|
{
|
|
try {
|
|
var factory = new WebServiceProxyFactory();
|
|
//alert(factory);
|
|
factory.createProxyAsync(wsdl_uri, "interopTestPort", "", true, aCreationListener);
|
|
}
|
|
catch (ex) {
|
|
alert(ex);
|
|
}
|
|
}
|
|
|
|
function requestTranslation (value)
|
|
{
|
|
if (proxy) {
|
|
//alert("Wait...");
|
|
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
|
|
proxy.echoBase64(value);
|
|
}
|
|
else {
|
|
alert("Error: Proxy set up not complete!");
|
|
}
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body>
|
|
<div id="banner">
|
|
<a name="top"></a>
|
|
|
|
WSDL Testcase: base64Binary (xsd:base64Binary)
|
|
</div>
|
|
|
|
<div id="main">
|
|
<p>This page tests simple type base64Binary operation. Sends a base64Binary value and the server echos it back</p>
|
|
|
|
<div style="border: 1px dotted black;">
|
|
<div style="padding: 20px;">
|
|
<table>
|
|
<tbody>
|
|
<tr>
|
|
<td>
|
|
<br>
|
|
<input id="intvalue" value="YkdRPQ==" type="text" size="40">
|
|
<input id="Send" type="button" value="Send base64Binary Value" onclick="Translate();">
|
|
<br>
|
|
<br>
|
|
<div id="result">Result from server:</div>
|
|
<br>
|
|
</td>
|
|
|
|
<td valign="bottom">
|
|
<div id="myWizard" style="position: relative;"></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<p></p>
|
|
</div></div>
|
|
|
|
</body></html> |