Adding simple type wsdl test cases

This commit is contained in:
ashishbhatt%netscape.com 2003-07-11 20:30:59 +00:00
Родитель eca5c05eea
Коммит 034ee0a6cf
10 изменённых файлов: 1073 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,111 @@
<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>

Просмотреть файл

@ -0,0 +1,113 @@
<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 ;
},
echoBooleanCallback : 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.echoBoolean(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: Boolean (xsd:boolean)
</div>
<div id="main">
<p>This page tests simple type boolean operation. Sends a boolean value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" type="text" size="40">
<input id="Send" type="button" value="Send Boolean Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,111 @@
<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 ;
},
echoDateCallback : 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.echoDate(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: dateTime (xsd:dateTime)
</div>
<div id="main">
<p>This page tests simple type dateTime operation. Sends a dateTime 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="2003-05-16T22:20:00-07:00" type="text" size="40">
<input id="Send" type="button" value="Send dateTime 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>

Просмотреть файл

@ -0,0 +1,113 @@
<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 ;
},
echoDecimalCallback : 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.echoDecimal(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: Decimal (xsd:decimal)
</div>
<div id="main">
<p>This page tests simple type decimal operation. Sends a decimal value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" type="text" size="40">
<input id="Send" type="button" value="Send Decimal Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,113 @@
<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 ;
},
echoFloatCallback : 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.echoFloat(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: Float (xsd:float)
</div>
<div id="main">
<p>This page tests simple type float operation. Sends a float value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" type="text" size="40">
<input id="Send" type="button" value="Send Float Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,114 @@
<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 ;
},
echoDecimalCallback : 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.echoHexBinary(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: hexBinary (xsd:hexBinary)
</div>
<div id="main">
<p>This page tests simple type hexBinary operation. Sends a hexBinary value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" value ="0FB7" type="text" size="40">
<input id="Send" type="button" value="Send hexBinary Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,113 @@
<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 ;
},
echoIntegerCallback : 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.echoInteger(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: Integer (xsd:int)
</div>
<div id="main">
<p>This page tests simple type integer operation. Sends a integer value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" type="text" size="40">
<input id="Send" type="button" value="Send Integer Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,113 @@
<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 ;
},
echoStringCallback : 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.echoString(value);
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: String (xsd:string)
</div>
<div id="main">
<p>This page tests simple type string operation. Sends a string value and the server echos it back</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<form>
<input id="intvalue" type="text" size="40">
<input id="Send" type="button" value="Send String Value" onclick="Translate();">
<br>
<br>
<div id="result">Result from server:</div>
</form>
<br>
</td>
<td valign="bottom">
<div id="myWizard" style="position: relative;"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<p></p>
</div></div>
</body></html>

Просмотреть файл

@ -0,0 +1,69 @@
body {margin: 30px;
background: #EEE url("../images/page-grid.gif") center fixed;
}
#banner, #main, #menu {
background: #fff url("../images/raptor-fade.jpg") 90% 30px no-repeat fixed;
}
#banner {
background-image: url("../images/raptor-head.jpg");
border: 1px solid #55A;
border-width: 1px 1px 1px 10px;
font: bold 23px Verdana, Arial, Tahoma, Helvetica, sans-serif;
height: 42px;
color: #448;
padding: 23px 0 0 20px;
}
#main {
background-image: url("../images/raptor-fade.jpg");
border: 1px solid #AAB;
border-width: 0 1px 1px 10px;
margin: 0;
padding: 0px 30px 30px 30px;
font: 1em Verdana, Arial, Tahoma, Helvetica, sans-serif;
}
#menu {
background-color: #E7EFFF;
background-image: url("../images/raptor-menu.gif");
float: right; width: 230px;
border: 1px solid #889;
border-width: 2px 10px 2px 2px;
margin: 30px 0px 0px 30px;
padding: 5px 0;
font-size: .75em;
}
#main a {padding: 2px 1px;}
#menu a {
display: block;
text-indent: -1.33em;
margin: 0 1em;
padding: 0.5em 1em 0.5em 1.5em;}
p {
line-height: 1.25;
color: #000000;
margin: 10px 10px 10px 10px;
padding: 0;
}
h1, h2, h3 {
font-weight: 800;
font-family: Verdana, Arial, Tahoma, Helvetica, sans-serif;
color: #000000;
padding: 5px 0px;
}
h1 {font-size: 150%;}
h2 {font-size: 130%;}
h3 {font-size: 110%;}
a {font-weight: 800; }
a:link {color: #339;}
a:visited {color: #339;}
a:link:hover {color: white; background: #339; text-decoration: none;}
a:visited:hover {color: white; background: #339; text-decoration: none;}

Просмотреть файл

@ -0,0 +1,103 @@
<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)
{
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 ;
},
echoVoidCallback : 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.echoVoid();
}
else {
alert("Error: Proxy set up not complete!");
}
}
</script>
</head>
<body>
<div id="banner">
<a name="top"></a>
WSDL Testcase: Void
</div>
<div id="main">
<p>This page tests simple type void operation. Calls a method which does not require any parameter</p>
<div style="border: 1px dotted black;">
<div style="padding: 20px;">
<table>
<tbody>
<tr>
<td>
<br>
<input id="Send" type="button" value="Call Void Method" 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>