Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0-M2
-
None
-
FireFox web browser version 1.5.0.4
-
Patch Available
Description
The soap-binding example included with ServiceMix-3.0 M2 does not work with FireFox. When a request is submitted from within FireFox the browser returns an "error opening" message.
The JavaScript error is:
Error: uncaught exception: [Exception... "Component returned failure code: 0xc1f30001 (NS_ERROR_NOT_INITIALIZED) [nsIXMLHttpRequest.send]" nsresult: "0xc1f30001 (NS_ERROR_NOT_INITIALIZED)" location: "JS frame :: file://<SERVICEMIX_HOME>/examples/soap-binding/client.html :: send :: line 61" data: no]
Elevating the privileges of the script needs to be done within the function that is opening the request. Moving the line:
netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead UniversalBrowserWrite");
from line 28 to just before the xmlhttp.open() call on line 57 grants the function the appropriate privileges.