2 <link rel=
"stylesheet" type=
"text/css" href=
"stylesheet.css"><title></title>
6 var wsdl_uri
= "http://www.pocketsoap.com/services/ilab.wsdl";
8 function Translate (aValue
)
11 aValue
= document
.getElementById("intvalue").value
;
14 alert("Please enter a value");
21 onLoad: function (aProxy
)
24 proxy
.setListener(listener
);
25 requestTranslation(aValue
);
28 onError: function (aError
)
30 //alert("Error-" + aError);
31 resdiv
= document
.getElementById("result");
32 resdiv
.innerHTML
= "Result from server:"+"Error-" + aError
;
35 echoBooleanCallback : function (aTranslatedValue
)
37 //alert(aTranslatedValue);
38 resdiv
= document
.getElementById("result");
39 resdiv
.innerHTML
= "Result from server:" + aTranslatedValue
;
42 createProxy(listener
);
45 requestTranslation(aValue
);
49 function createProxy(aCreationListener
)
52 var factory
= new WebServiceProxyFactory();
54 factory
.createProxyAsync(wsdl_uri
, "interopTestPort", "", true, aCreationListener
);
61 function requestTranslation (value
)
65 netscape
.security
.PrivilegeManager
.enablePrivilege("UniversalBrowserRead");
66 proxy
.echoBoolean(value
);
69 alert("Error: Proxy set up not complete!");
79 WSDL Testcase: Boolean (xsd:boolean)
83 <p>This page tests simple type boolean operation. Sends a boolean value and the server echos it back
</p>
85 <div style=
"border: 1px dotted black;">
86 <div style=
"padding: 20px;">
93 <input id=
"intvalue" type=
"text" size=
"40">
94 <input id=
"Send" type=
"button" value=
"Send Boolean Value" onclick=
"Translate();">
97 <div id=
"result">Result from server:
</div>
103 <div id=
"myWizard" style=
"position: relative;"></div>