2 Replies Latest reply on Aug 28, 2009 10:14 AM by anil.saldhana

    Dispatch and ConfigProvider

    anil.saldhana

       

      // create the dispatch, setting the client security configuration file.
       Dispatch<Object> dispatch = service.createDispatch(portName, jbc, Mode.PAYLOAD);
       ((ConfigProvider) dispatch).setSecurityConfig(securityConfigURL.toExternalForm());
       ((ConfigProvider) dispatch).setConfigName("Standard WSSecurity Client");
      


      I am unsure why an user has to cast the Dispatch object to ConfigProvider just to set the url of the wss config file and the config name? I know that this beyond the capabilities provided by the Dispatch interface.

      Why can we not use system properties to provide this information or just have a properties file with the settings and take in one system property?