<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Test</title> <script type="text/javascript"> function test() { try { document.getElementById("showResult").innerHTML = "Please wait ..."; netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); var serviceURI = "http://192.168.0.5:8090/test"; var method = "test"; var soapCall = new SOAPCall(); soapCall.transportURI = serviceURI soapCall.encode(0, method, serviceURI,0,null,0,null); var response = soapCall.invoke(); if (response.fault) { document.getElementById("showResult").innerHTML = "An error occured: " + response.fault.faultString; } else { var responsArray = new Array(); responsArray = response.getParameters(false,{}); } var resultText = responsArray[0].value; document.getElementById("showResult").innerHTML = resultText; } catch (e) { alert(e); return false; } } </script> </head> <body> <h3>jSoapServer Access</h3> <form action="#" onsubmit="return false;"> <input type="button" value="Test" onclick="test();"> </form> <hr> <div id="showResult"> <code>Search results will appear here.</code> </div> </body> </html>