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
;
36 echoDecimalCallback : function (aTranslatedValue
)
38 //alert(aTranslatedValue);
39 resdiv
= document
.getElementById("result");
40 resdiv
.innerHTML
= "Result from server:" + aTranslatedValue
;
43 createProxy(listener
);
46 requestTranslation(aValue
);
50 function createProxy(aCreationListener
)
53 var factory
= new WebServiceProxyFactory();
55 factory
.createProxyAsync(wsdl_uri
, "interopTestPort", "", true, aCreationListener
);
62 function requestTranslation (value
)
66 netscape
.security
.PrivilegeManager
.enablePrivilege("UniversalBrowserRead");
67 proxy
.echoHexBinary(value
);
70 alert("Error: Proxy set up not complete!");
80 WSDL Testcase: hexBinary (xsd:hexBinary)
84 <p>This page tests simple type hexBinary operation. Sends a hexBinary value and the server echos it back
</p>
86 <div style=
"border: 1px dotted black;">
87 <div style=
"padding: 20px;">
94 <input id=
"intvalue" value =
"0FB7" type=
"text" size=
"40">
95 <input id=
"Send" type=
"button" value=
"Send hexBinary Value" onclick=
"Translate();">
98 <div id=
"result">Result from server:
</div>
104 <div id=
"myWizard" style=
"position: relative;"></div>