| Sign In/My Account | View Cart |
| Article: |
Using the Mozilla SOAP API | |
| Subject: | Security issues when using Mozilla 1.3b | |
| Date: | 2003-12-11 09:49:23 | |
| From: | c.biasuzzi | |
|
Response to: Security issues when using Mozilla 1.3b
|
||
|
... just copy the netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead"); (with the surrounding try/catch block) from the callGoogle function in the showResults function. It worked for me!
|
||
Showing messages 1 through 3 of 3.
my js function which calls the web service is as follows:
var soapVersion = 0;
var transportURI = "http://192.168.1.234:8080/ogsa/services/progtutorial/core/first/HelloService";
function getValueOf( )
{
var method = "getValue";
var name="Hello";
var headers = new Array( );
var params = new Array(new SOAPParameter(name,"name"));
var object="http://www.globus.org/namespaces/2004/02/progtutorial/HelloService";
var call = Components.classes["@mozilla.org/xmlextras/soap/call;1"].createInstance();
var r;
try{
if (call instanceof Components.interfaces.nsISOAPCall){
call.transportURI = transportURI;
call.encode(0,method,object,headers.length,headers,params.length,params);
r=call.invoke();
}
if(r.fault)
alert("Error "+r.fault.faultString);
else{
var response = new Array();
response = r.getParameters(false,{});
alert("params " +params);
}
}catch(e){
alert( e );
}
}
getValue is the name of the method in my web service which takes an argument.
Is object the targetNamespace which is in the wsdl file? if no, what should be the object.
i have given the object as the targetNamespace which is in my wsdl file.
can anyone please tell me what is wrong with the code?
Thanx & Regards,
Pushpa