Package org.apache.axis.configuration

Examples of org.apache.axis.configuration.FileProvider


        super.tearDown();
    }

    protected FileProvider getFileProvider() throws ConfigurationException
    {
        return new FileProvider(InteropTestCase.class.getResourceAsStream("/server-config.wsdd"));
    }
View Full Code Here


            throw new BuildException( "No deploy WSDDs were specified!" );
        }

        try
        {
            AxisEngine axisEngine = new AxisServer( new FileProvider( m_configWsdd ) );
            m_msgContext = new MessageContext( axisEngine );
            m_axisAdmin = new Admin();
            for ( int i = 0; i < m_wsddFiles.size(); i++ )
            {
                deployWsdd( (File) m_wsddFiles.get( i ) );
View Full Code Here

   {
      String endpoint = getEndpoint(address, environment);

      InputStream wsdd = getClass().getResourceAsStream(CLIENT_WSDD);
      if (wsdd == null) throw new IOException("Could not find AXIS deployment descriptor");
      Service service = new Service(new FileProvider(wsdd));
      service.setMaintainSession(true);

      return new SOAPClientInvoker(endpoint, service);
   }
View Full Code Here

   {
      config = ( config == null ) ? DEFAULT_SERVER_CONFIG : config;
      AxisServer engine = (AxisServer) s_serverEngines.get( config );
      if ( engine == null )
      {
         engine = new AxisServer( new FileProvider( config ) );
         s_serverEngines.put( config, engine );
      }

      return engine;
   }
View Full Code Here

    /* Technically, we are supposed to use Axis's EngineConfigurationFactory
     * but it is a big PITA and seems uneccessary.  This can be changed
     * in the future if more flexible mechanisms of loading the
     * configuration are needed.
     */
    FileProvider fileProvider = null;

      if ( serverConfig.equals("") )
      {
        getLogger().debug( "Using default server-config.wsdd." );
       
        InputStream is = this.getClass().getResourceAsStream( DEFAULT_SERVER_CONFIG );
     
      if ( is == null )
        throw new RuntimeException( "Configuration is null!" );

        fileProvider = new FileProvider( DEFAULT_SERVER_CONFIG );
        fileProvider.setInputStream( is );
      }
      else
      {
      getLogger().debug( "Using server-config " + serverConfig + "." );
            File configFile = null;
            try
            {
                configFile = AvalonContextUtilities.getFile(context, serverConfig);
            }
            catch (Exception e)
            {
                e.printStackTrace();
            }
           
            getLogger().info( "Found AXIS configuration at " + configFile.getAbsolutePath() );
        fileProvider = new FileProvider( new FileInputStream(configFile) );
      }

        /* Wrap the FileProvider with a SimpleProvider.  This needs to be done
         * because the only way to expose services with the FileProvider is to
         * use WSDD deployment descriptors.  SimpleProvider allows us to deploy
View Full Code Here

            String config;
            config = (String)endpoint.getProperty(AxisConnector.AXIS_CLIENT_CONFIG_PROPERTY);

            if (config != null)
            {
                clientConfig = new FileProvider(config);
            }
            else
            {
                clientConfig = connector.getClientProvider();
            }
View Full Code Here

            String config;
            config = (String)endpoint.getProperty(AxisConnector.AXIS_CLIENT_CONFIG_PROPERTY);

            if (config != null)
            {
                clientConfig = new FileProvider(config);
            }
            else
            {
                clientConfig = connector.getClientProvider();
            }
View Full Code Here

    {
        Map env = new HashMap();

        // use FileProvider directly with a Avalon Source object instead of going
        // through the EngineConfigurationFactoryServlet class
        m_engineConfig = new FileProvider(m_serverWSDD.getInputStream());

        env.put(EngineConfiguration.PROPERTY_NAME, m_engineConfig);
        env.put(AxisEngine.ENV_ATTACHMENT_DIR, m_attachmentDir);
        // REVISIT(MC): JNDI Factory support ?
        //env.put(AxisEngine.ENV_SERVLET_CONTEXT, context);
View Full Code Here

        super.tearDown();
    }

    protected FileProvider getFileProvider() throws ConfigurationException
    {
        return new FileProvider(InteropTestCase.class.getResourceAsStream("/server-config.wsdd"));
    }
View Full Code Here

    *                   the server socket or failed to start the server
    */
   protected void startAxisServer(  )
   throws Exception
   {
      FileProvider config = new FileProvider( getAxisConfigBasePath(  ),
                                              getAxisConfigFileName(  ) );
      ServerSocket ss = new ServerSocket( getAxisServerSocketPort(  ) );
      m_simpleAxisServer = new NotSoSimpleAxisServer(  );
      m_simpleAxisServer.setServerSocket( ss );
      m_simpleAxisServer.setMyConfig( config );
View Full Code Here

TOP

Related Classes of org.apache.axis.configuration.FileProvider

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.