ServiceMix
  1. ServiceMix
  2. SM-496

Allows the soap-binding example to run in FireFox.

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0-M2
    • Fix Version/s: 3.0
    • Component/s: servicemix-components
    • Labels:
      None
    • Environment:

      FireFox web browser version 1.5.0.4

    • Patch Info:
      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.

        Activity

        Hide
        Guillaume Nodet added a comment -

        Awesome, thx a lot for this fix.

        Author: gnodet
        Date: Mon Jul 24 07:58:53 2006
        New Revision: 425083

        URL: http://svn.apache.org/viewvc?rev=425083&view=rev
        Log:
        SM-496: allow the soap-binding example to run in FireFox
        Fix provided by Christopher Steinmeyer

        Modified:
        incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/README.txt
        incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/build.xml
        incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/client.html

        Show
        Guillaume Nodet added a comment - Awesome, thx a lot for this fix. Author: gnodet Date: Mon Jul 24 07:58:53 2006 New Revision: 425083 URL: http://svn.apache.org/viewvc?rev=425083&view=rev Log: SM-496 : allow the soap-binding example to run in FireFox Fix provided by Christopher Steinmeyer Modified: incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/README.txt incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/build.xml incubator/servicemix/trunk/apache-servicemix/src/main/release/examples/soap-binding/client.html

          People

          • Assignee:
            Guillaume Nodet
            Reporter:
            Christopher Steinmeyer
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development