Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-496

Allows the soap-binding example to run in FireFox.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.0-M2
    • 3.0
    • servicemix-components
    • 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.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--client.html
          2 kB
          Christopher Steinmeyer

        Activity

          People

            gnodet Guillaume Nodet
            csteinmeyer Christopher Steinmeyer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: