Package org.apache.axis2.transport.http

Examples of org.apache.axis2.transport.http.SimpleHTTPServer


  public ConfigurationContext startServer(String repoPath, String axis2_xml)
  throws Exception {

    ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);

    httpServer = new SimpleHTTPServer (configContext,serverPort);
    httpServer.start();
    Thread.sleep(300);
   
    return configContext;
  }
View Full Code Here


      } catch (NumberFormatException e) {
        log.error(e);
      }
    }

    httpServer = new SimpleHTTPServer(configContext, serverPort);
    httpServer.start();
    try {
      Thread.sleep(300);
    } catch (InterruptedException e) {
      throw new SandeshaException("sleep interupted");
View Full Code Here

      throw new AxisFault("Cant find the ping operation");

    // setting the operation specific phase chain
    operation.setRemainingPhasesInFlow(pingOperation.getRemainingPhasesInFlow());

    httpServer = new SimpleHTTPServer(configContext, serverPort);
    httpServer.start();
    try {
      Thread.sleep(300);
    } catch (InterruptedException e) {
      throw new SandeshaException("sleep interupted");
View Full Code Here

      throws Exception {

    ConfigurationContext configContext =
        ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath, axis2_xml);

    httpServer = new SimpleHTTPServer(configContext, serverPort);
    httpServer.start();
    Thread.sleep(300);

    return configContext;
  }
View Full Code Here

    public static synchronized void start(String repository, String axis2xml) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository, axis2xml);
            TESTING_PORT = getAvailablePort();
            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            try {
                receiver.start();
                System.out.print("Server started on port " + TESTING_PORT + ".....");
            } catch (Exception e) {
View Full Code Here

            operation1.setMessageReceiver(messageReceiver);
            messageCollectorService.addOperation(operation1);
           
            configContext.getAxisConfiguration().addService(messageCollectorService);
           
            axis2Server = new SimpleHTTPServer(configContext, 7777);
            axis2Server.start();
           
            eventSinkUrl = axis2Server.getEPRForService(messageCollectorService.getName(), InetAddress.getLocalHost().getHostName());
        } catch (UnknownHostException e) {
            throw AxisFault.makeFault(e);
View Full Code Here

  public ConfigurationContext startServer(String repoPath, String axis2_xml)
  throws Exception {

    ConfigurationContext configContext = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repoPath,axis2_xml);

    httpServer = new SimpleHTTPServer (configContext,serverPort);
    httpServer.start();
    Thread.sleep(300);
   
    return configContext;
  }
View Full Code Here

    public static synchronized void start(String repository) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository);

            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            try {
                receiver.start();
                System.out.print("Server started on port "
                        + TESTING_PORT + ".....");
View Full Code Here

    public static synchronized void start(String repository, String axis2xml) throws Exception {
        if (count == 0) {
            ConfigurationContext er = getNewConfigurationContext(repository, axis2xml);

            receiver = new SimpleHTTPServer(er, TESTING_PORT);

            try {
                receiver.start();
                System.out.print("Server started on port "
                        + TESTING_PORT + ".....");
View Full Code Here

                throw new AxisFault(file.getAbsolutePath() + " File does not exist");
            }
            ConfigurationContext configctx =
                    ConfigurationContextFactory.createConfigurationContextFromFileSystem(
                            file.getAbsolutePath(), file.getAbsolutePath() + "/axis2.xml");
            SimpleHTTPServer receiver = new SimpleHTTPServer(configctx, port);
            receiver.start();
        } catch (Exception e) {
            log.info(e.getMessage());
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.axis2.transport.http.SimpleHTTPServer

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.