1 Reply Latest reply on Dec 9, 2011 10:30 AM by Flex harUI

    Flex 4.6 "rootURL" never read in AbstractWebService constructor

    pbeltranl

      Hi,

       

      The mx.rpc.soap.AbstractWebService constructor ignores the rootURL parameter (and its WebService child too):

       

      ==============================================================

        public function AbstractWebService(destination:String = null, rootURL:String = null)

          {

              super(destination);

       

              _useProxy = false;

              _headers = [];

              _log = Log.getLogger("mx.rpc.soap.AbstractWebService");

       

              if (destination == null)

              {

                  // If the SWF was loaded via HTTPS, we'll use the DefaultHTTPS

                  // destination by default

                  if (URLUtil.isHttpsURL(LoaderConfig.url))

                      super.destination = DEFAULT_DESTINATION_HTTPS;

                  else

                      super.destination = DEFAULT_DESTINATION_HTTP;

       

                  destinationSet = false;

              }

              else

              {

                  destinationSet = true;

              }

       

              makeObjectsBindable = true;

       

              _ready = true;

          }

      ==============================================================

       

      I would say that following code:

       

      this.rootURL=rootURL

       

      is missing.

       

      Thanks,

      Pablo