Java Code Examples for org.apache.axis2.context.ConfigurationContextFactory#createConfigurationContextFromFileSystem()

The following examples show how to use org.apache.axis2.context.ConfigurationContextFactory#createConfigurationContextFromFileSystem() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: Axis2ServerManager.java    From product-ei with Apache License 2.0 6 votes vote down vote up
public Axis2ServerManager(String axis2xmlFile) {
    repositoryPath = System.getProperty(ServerConstants.CARBON_HOME) + File.separator +
            "samples" + File.separator + "axis2Server" + File.separator + "repository";
    File repository = new File(repositoryPath);
    log.info("Using the Axis2 repository path: " + repository.getAbsolutePath());
    try {
        File axis2xml = copyResourceToFileSystem(axis2xmlFile, "axis2.xml");
        if (!axis2xml.exists()) {
            log.error("Error while copying the test axis2.xml to the file system");
            return;
        }
        log.info("Loading axis2.xml from: " + axis2xml.getAbsolutePath());
        cfgCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(
                repository.getAbsolutePath(), axis2xml.getAbsolutePath());
    } catch (Exception e) {
        log.error("Error while initializing the configuration context", e);
    }
}
 
Example 2
Source File: LoadBalanceSessionFullClient.java    From product-ei with Apache License 2.0 6 votes vote down vote up
private void init() throws IOException {
    String repositoryPath =
        System.getProperty(ESBTestConstant.CARBON_HOME) + File.separator + "samples" + File.separator +
        "axis2Client" + File.separator + DEFAULT_CLIENT_REPO;

    File repository = new File(repositoryPath);
    if (log.isDebugEnabled()) {
        log.debug("Axis2 repository path: " + repository.getAbsolutePath());
    }

    ConfigurationContext configurationContext =
        ConfigurationContextFactory.createConfigurationContextFromFileSystem(
            repository.getCanonicalPath(), null);
    serviceClient = new ServiceClient(configurationContext, null);
    log.info("LoadBalanceSessionFullClient initialized successfully...");
}
 
Example 3
Source File: SampleAxis2Server.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
public SampleAxis2Server(String axis2xmlFile) {
    repositoryPath = System.getProperty(ServerConstants.CARBON_HOME) + File.separator + "samples" + File.separator
            + "axis2Server" + File.separator + "repository";
    File repository = new File(repositoryPath);
    log.info("Using the Axis2 repository path: " + repository.getAbsolutePath());

    try {
        File axis2xml = copyResourceToFileSystem(axis2xmlFile, "axis2.xml");
        if (axis2xml == null) {
            log.error("Error while copying the test axis2.xml to the file system");
            return;
        }
        log.info("Loading axis2.xml from: " + axis2xml.getAbsolutePath());
        cfgCtx = ConfigurationContextFactory
                .createConfigurationContextFromFileSystem(repository.getAbsolutePath(), axis2xml.getAbsolutePath());
    } catch (Exception e) {
        log.error("Error while initializing the configuration context", e);
    }
}
 
Example 4
Source File: SecureSample.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args) throws Exception {
    String epr = "https://" + HOST_IP + ":" + HOST_HTTPS_PORT + "/services/samples/SecureDataService";
    System.setProperty("javax.net.ssl.trustStore", (new File(CLIENT_JKS_PATH)).getAbsolutePath());
    ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
    SecureDataServiceStub stub = new SecureDataServiceStub(ctx, epr);
    ServiceClient client = stub._getServiceClient();
    Options options = client.getOptions();
    client.engageModule("rampart");
    options.setUserName("admin");
    options.setPassword("admin");

    options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(SECURITY_POLICY_PATH));
    Office[] offices = stub.showAllOffices();
    for (Office office : offices) {
        System.out.println("\t-----------------------------");
        System.out.println("\tOffice Code: " + office.getOfficeCode());
        System.out.println("\tPhone: " + office.getPhone());
        System.out.println("\tAddress Line 1: " + office.getAddressLine1());
        System.out.println("\tAddress Line 2: " + office.getAddressLine2());
        System.out.println("\tCity: " + office.getCity());
        System.out.println("\tState: " + office.getState());
        System.out.println("\tPostal Code: " + office.getPostalCode());
        System.out.println("\tCountry: " + office.getCountry());
    }
}
 
Example 5
Source File: TcpClient.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
public TcpClient() {
    String repositoryPath = /*ProductConstant.getModuleClientPath()*/
            FrameworkPathUtil.getSystemResourceLocation() + File.separator + "client";

    File repository = new File(repositoryPath);
    try {
        cfgCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(repository.getCanonicalPath(),
                /*ProductConstant.getResourceLocations(ProductConstant.ESB_SERVER_NAME)*/
                FrameworkPathUtil.getSystemResourceLocation() + File.separator + "artifacts" + File.separator
                        + "ESB" + File.separator + "tcp" + File.separator + "transport" + File.separator
                        + "client_axis2.xml");
        serviceClient = new ServiceClient(cfgCtx, null);
    } catch (Exception e) {
        log.error(e);
    }
}
 
Example 6
Source File: CarbonBasicPolicyPublisherModule.java    From carbon-identity-framework with Apache License 2.0 6 votes vote down vote up
@Override
public void init(PublisherDataHolder propertyHolder) throws EntitlementException {

    PublisherPropertyDTO[] propertyDTOs = propertyHolder.getPropertyDTOs();
    for (PublisherPropertyDTO dto : propertyDTOs) {
        if ("subscriberURL".equals(dto.getId())) {
            serverUrl = dto.getValue();
        } else if ("subscriberUserName".equals(dto.getId())) {
            serverUserName = dto.getValue();
        } else if ("subscriberPassword".equals(dto.getId())) {
            serverPassword = dto.getValue();
        }
    }

    try {
        configCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
    } catch (AxisFault axisFault) {
        log.error("Error while initializing module", axisFault);
        throw new EntitlementException("Error while initializing module", axisFault);
    }
}
 
Example 7
Source File: CarbonBasicPolicyPublisherModule.java    From carbon-identity with Apache License 2.0 6 votes vote down vote up
@Override
public void init(PublisherDataHolder propertyHolder) throws EntitlementException {

    PublisherPropertyDTO[] propertyDTOs = propertyHolder.getPropertyDTOs();
    for (PublisherPropertyDTO dto : propertyDTOs) {
        if ("subscriberURL".equals(dto.getId())) {
            serverUrl = dto.getValue();
        } else if ("subscriberUserName".equals(dto.getId())) {
            serverUserName = dto.getValue();
        } else if ("subscriberPassword".equals(dto.getId())) {
            serverPassword = dto.getValue();
        }
    }

    try {
        configCtx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
    } catch (AxisFault axisFault) {
        log.error("Error while initializing module", axisFault);
        throw new EntitlementException("Error while initializing module", axisFault);
    }
}
 
Example 8
Source File: CEPPolicyManagementServiceClient.java    From carbon-apimgt with Apache License 2.0 6 votes vote down vote up
public CEPPolicyManagementServiceClient() throws APIManagementException {
    APIManagerConfiguration config = ServiceReferenceHolder.getInstance().getAPIManagerConfigurationService().
            getAPIManagerConfiguration();
    String serviceURL = config.getFirstProperty(APIConstants.CPS_SERVER_URL);
    username = config.getFirstProperty(APIConstants.CPS_SERVER_USERNAME);

    if (serviceURL == null) {
        throw new APIManagementException("Required connection details for the central policy server not provided");
    }
    try {

        ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
        //Initialize the client here
    } catch (AxisFault axisFault) {
        throw new APIManagementException("Error while initializing central policy client", axisFault);
    }
}
 
Example 9
Source File: BasicAuthEntitlementServiceClient.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
private void initConfigurationContext() throws Exception {
    HttpConnectionManager multiThreadedHttpConnectionManager = new MultiThreadedHttpConnectionManager();
    HttpClient httpClient = new HttpClient(multiThreadedHttpConnectionManager);

    File configFile = new File(DEFAULT_AXIS2_XML);

    if (!configFile.exists()) {
        configurationContext = ConfigurationContextFactory.createDefaultConfigurationContext();
        configurationContext.setProperty(HTTPConstants.DEFAULT_MAX_CONNECTIONS_PER_HOST, MAX_CONNECTIONS_PER_HOST);
    } else {
        configurationContext = ConfigurationContextFactory.
                createConfigurationContextFromFileSystem(DEFAULT_CLIENT_REPO, DEFAULT_AXIS2_XML);
    }
    configurationContext.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);
    configurationContext.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, Constants.VALUE_TRUE);

    Map<String, TransportOutDescription> transportsOut = configurationContext.getAxisConfiguration()
            .getTransportsOut();

    for (TransportOutDescription transportOutDescription : transportsOut.values()) {
        if (Constants.TRANSPORT_HTTP.equals(transportOutDescription.getName()) || Constants.TRANSPORT_HTTPS
                .equals(transportOutDescription.getName())) {
            transportOutDescription.getSender().init(configurationContext, transportOutDescription);
        }
    }
}
 
Example 10
Source File: AxisOperationClient.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
public AxisOperationClient() {

        String repositoryPath =
                System.getProperty(ServerConstants.CARBON_HOME) + File.separator + "samples" + File.separator
                        + "axis2Server" + File.separator + "repository";
        File repository = new File(repositoryPath);
        log.info("Using the Axis2 repository path: " + repository.getAbsolutePath());

        try {
            cfgCtx = ConfigurationContextFactory
                    .createConfigurationContextFromFileSystem(repository.getCanonicalPath(), null);
            serviceClient = new ServiceClient(cfgCtx, null);
            log.info("Sample clients initialized successfully...");
        } catch (Exception e) {
            log.error("Error while initializing the Operational Client", e);
        }
    }
 
Example 11
Source File: SecureSample.java    From micro-integrator with Apache License 2.0 6 votes vote down vote up
public static void main(String[] args) throws Exception {
	String epr = "https://" + HOST_IP + ":" + HOST_HTTPS_PORT + "/services/samples/SecureDataService";
	System.setProperty("javax.net.ssl.trustStore", (new File(CLIENT_JKS_PATH)).getAbsolutePath());
	ConfigurationContext ctx = ConfigurationContextFactory
			.createConfigurationContextFromFileSystem(null, null);
               SecureDataServiceStub stub = new SecureDataServiceStub(ctx, epr);
	ServiceClient client = stub._getServiceClient();
	Options options = client.getOptions();
	client.engageModule("rampart");		
	options.setUserName("admin");
	options.setPassword("admin");

	options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(SECURITY_POLICY_PATH));
	Office[] offices = stub.showAllOffices();
	for (Office office : offices) {
		System.out.println("\t-----------------------------");
		System.out.println("\tOffice Code: " + office.getOfficeCode());
		System.out.println("\tPhone: " + office.getPhone());
		System.out.println("\tAddress Line 1: " + office.getAddressLine1());
		System.out.println("\tAddress Line 2: " + office.getAddressLine2());
		System.out.println("\tCity: " + office.getCity());			
		System.out.println("\tState: " + office.getState());
		System.out.println("\tPostal Code: " + office.getPostalCode());
		System.out.println("\tCountry: " + office.getCountry());
	}
}
 
Example 12
Source File: HostObjectComponent.java    From carbon-apimgt with Apache License 2.0 5 votes vote down vote up
@Activate
protected void activate(ComponentContext componentContext) {
    try {
        ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(getClientRepoLocation(), getAxis2ClientXmlLocation());
        ServiceReferenceHolder.getInstance().setAxis2ConfigurationContext(ctx);
        if (log.isDebugEnabled()) {
            log.debug("HostObjectComponent activated");
        }
    } catch (AxisFault axisFault) {
        log.error("Error while initializing the API HostObject component", axisFault);
    }
}
 
Example 13
Source File: ServiceInvoker.java    From micro-integrator with Apache License 2.0 5 votes vote down vote up
public ServiceInvoker(String epr, String operation) {

        this.operation = operation;

        Options options = new Options();
        options.setTo(new EndpointReference(epr));
        options.setAction(operation);

        try {
            ConfigurationContext configContext = ConfigurationContextFactory.
                    createConfigurationContextFromFileSystem("client_repo", null);

            client = new ServiceClient(configContext, null);
            options.setTimeOutInMilliSeconds(10000000);

            client.setOptions(options);
            client.engageModule("addressing");

        } catch (AxisFault axisFault) {
            axisFault.printStackTrace();
        }

        fac = OMAbstractFactory.getOMFactory();
        msg = fac.createOMElement("SampleMsg", null);

        OMElement load = fac.createOMElement("load", null);
        load.setText("1000");
        msg.addChild(load);
    }
 
Example 14
Source File: MTOMSwAClient.java    From micro-integrator with Apache License 2.0 5 votes vote down vote up
private static ServiceClient createServiceClient() throws AxisFault {
    String repo = getProperty("repository", "client_repo");
    if (repo != null && !"null".equals(repo)) {
        ConfigurationContext configContext =
                ConfigurationContextFactory.
                        createConfigurationContextFromFileSystem(repo,
                                repo + File.separator + "conf" + File.separator + "axis2.xml");
        return new ServiceClient(configContext, null);
    } else {
        return new ServiceClient();
    }
}
 
Example 15
Source File: RegistryProviderUtil.java    From product-es with Apache License 2.0 5 votes vote down vote up
public WSRegistryServiceClient getWSRegistry (AutomationContext automationContext)
        throws Exception {

    System.setProperty("carbon.repo.write.mode", "true");
    WSRegistryServiceClient registry = null;
    ConfigurationContext configContext;
    String axis2Repo = FrameworkPathUtil.getSystemResourceLocation() + File.separator + "client";
    String axis2Conf = FrameworkPathUtil.getSystemResourceLocation() + "axis2config" +
            File.separator + "axis2_client.xml";
    TestFrameworkUtils.setKeyStoreProperties(automationContext);
    try {
        configContext = ConfigurationContextFactory.
                createConfigurationContextFromFileSystem(axis2Repo, axis2Conf);

        configContext.setProperty(HTTPConstants.CONNECTION_TIMEOUT, TIME_OUT_VALUE);

        log.info("Group ConfigurationContext Timeout " +
                configContext.getServiceGroupContextTimeoutInterval());

        registry = new WSRegistryServiceClient(
                automationContext.getContextUrls().getBackEndUrl(),
                automationContext.getContextTenant().getContextUser().getUserName(),
                automationContext.getContextTenant().getContextUser().getPassword(), configContext);

        log.info("WS Registry Created - Login Successful");

    } catch (Exception e) {
        handleException("Failed instantiate WSRegistry client instance ", e);
    }
    return registry;
}
 
Example 16
Source File: CloudControllerServiceClient.java    From attic-stratos with Apache License 2.0 5 votes vote down vote up
private CloudControllerServiceClient(String epr) throws AxisFault {
    MultiThreadedHttpConnectionManager multiThreadedHttpConnectionManager = new
            MultiThreadedHttpConnectionManager();
    HttpConnectionManagerParams params = new HttpConnectionManagerParams();
    params.setDefaultMaxConnectionsPerHost(StratosConstants.CLOUD_CONTROLLER_CLIENT_MAX_CONNECTIONS_PER_HOST);
    params.setMaxTotalConnections(StratosConstants.CLOUD_CONTROLLER_CLIENT_MAX_TOTAL_CONNECTIONS);
    multiThreadedHttpConnectionManager.setParams(params);
    HttpClient httpClient = new HttpClient(multiThreadedHttpConnectionManager);
    ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(null, null);
    ctx.setProperty(HTTPConstants.CACHED_HTTP_CLIENT, httpClient);

    String ccSocketTimeout = System.getProperty(StratosConstants.CLOUD_CONTROLLER_CLIENT_SOCKET_TIMEOUT) == null ?
            StratosConstants.DEFAULT_CLIENT_SOCKET_TIMEOUT :
            System.getProperty(StratosConstants.CLOUD_CONTROLLER_CLIENT_SOCKET_TIMEOUT);

    String ccConnectionTimeout =
            System.getProperty(StratosConstants.CLOUD_CONTROLLER_CLIENT_CONNECTION_TIMEOUT) == null ?
                    StratosConstants.DEFAULT_CLIENT_CONNECTION_TIMEOUT :
                    System.getProperty(StratosConstants.CLOUD_CONTROLLER_CLIENT_CONNECTION_TIMEOUT);
    try {
        stub = new CloudControllerServiceStub(ctx, epr);
        stub._getServiceClient().getOptions()
                .setProperty(HTTPConstants.SO_TIMEOUT, Integer.valueOf(ccSocketTimeout));
        stub._getServiceClient().getOptions()
                .setProperty(HTTPConstants.CONNECTION_TIMEOUT, new Integer(ccConnectionTimeout));
        stub._getServiceClient().getOptions().setProperty(HTTPConstants.CHUNKED, Constants.VALUE_FALSE);
        stub._getServiceClient().getOptions().setProperty(Constants.Configuration.DISABLE_SOAP_ACTION, Boolean
                .TRUE);
    } catch (AxisFault axisFault) {
        String msg = "Could not initialize cloud controller service client";
        log.error(msg, axisFault);
        throw new AxisFault(msg, axisFault);
    }
}
 
Example 17
Source File: SampleAxis2ServerManager.java    From micro-integrator with Apache License 2.0 4 votes vote down vote up
public void start(String[] args) throws Exception {
    String repoLocation = null;
    String confLocation = null;

    CommandLineOptionParser optionsParser = new CommandLineOptionParser(args);
    List invalidOptionsList = optionsParser.getInvalidOptions(new OptionsValidator() {
        public boolean isInvalid(CommandLineOption option) {
            String optionType = option.getOptionType();
            return !("repo".equalsIgnoreCase(optionType) || "conf"
                .equalsIgnoreCase(optionType));
        }
    });

    if ((invalidOptionsList.size() > 0) || (args.length > 4)) {
        printUsage();
    }

    Map optionsMap = optionsParser.getAllOptions();

    CommandLineOption repoOption = (CommandLineOption) optionsMap
        .get("repo");
    CommandLineOption confOption = (CommandLineOption) optionsMap
        .get("conf");

    log.info("[SimpleAxisServer] Starting");
    if (repoOption != null) {
        repoLocation = repoOption.getOptionValue();
        System.out.println("[SimpleAxisServer] Using the Axis2 Repository : "
            + new File(repoLocation).getAbsolutePath());
    }
    if (confOption != null) {
        confLocation = confOption.getOptionValue();
        System.out
            .println("[SimpleAxisServer] Using the Axis2 Configuration File : "
                + new File(confLocation).getAbsolutePath());
    }
    try {
        configctx = ConfigurationContextFactory
            .createConfigurationContextFromFileSystem(repoLocation,
                confLocation);

        configurePort(configctx);

        // Need to initialize the cluster manager at last since we are changing the servers
        // HTTP/S ports above. In the axis2.xml file, we need to set the "AvoidInitiation" param
        // to "true"
        ClusteringAgent clusteringAgent =
                configctx.getAxisConfiguration().getClusteringAgent();
        if(clusteringAgent != null) {
            clusteringAgent.setConfigurationContext(configctx);
            clusteringAgent.init();
        }

        // Finally start the transport listeners
        listenerManager = new ListenerManager();
        listenerManager.init(configctx);
        listenerManager.start();
        log.info("[SimpleAxisServer] Started");
    } catch (Throwable t) {
        log.fatal("[SimpleAxisServer] Shutting down. Error starting SimpleAxisServer", t);
        System.exit(1); // must stop application
    }
}
 
Example 18
Source File: SampleAxis2ServerManager.java    From product-ei with Apache License 2.0 4 votes vote down vote up
public void start(String[] args) throws Exception {
    String repoLocation = null;
    String confLocation = null;

    CommandLineOptionParser optionsParser = new CommandLineOptionParser(args);
    List invalidOptionsList = optionsParser.getInvalidOptions(new OptionsValidator() {
        public boolean isInvalid(CommandLineOption option) {
            String optionType = option.getOptionType();
            return !("repo".equalsIgnoreCase(optionType) || "conf"
                .equalsIgnoreCase(optionType));
        }
    });

    if ((invalidOptionsList.size() > 0) || (args.length > 4)) {
        printUsage();
    }

    Map optionsMap = optionsParser.getAllOptions();

    CommandLineOption repoOption = (CommandLineOption) optionsMap
        .get("repo");
    CommandLineOption confOption = (CommandLineOption) optionsMap
        .get("conf");

    log.info("[SimpleAxisServer] Starting");
    if (repoOption != null) {
        repoLocation = repoOption.getOptionValue();
        System.out.println("[SimpleAxisServer] Using the Axis2 Repository : "
            + new File(repoLocation).getAbsolutePath());
    }
    if (confOption != null) {
        confLocation = confOption.getOptionValue();
        System.out
            .println("[SimpleAxisServer] Using the Axis2 Configuration File : "
                + new File(confLocation).getAbsolutePath());
    }
    try {
        configctx = ConfigurationContextFactory
            .createConfigurationContextFromFileSystem(repoLocation,
                confLocation);

        configurePort(configctx);

        // Finally start the transport listeners
        listenerManager = new ListenerManager();
        listenerManager.init(configctx);
        listenerManager.start();
        log.info("[SimpleAxisServer] Started");
    } catch (Throwable t) {
        log.fatal("[SimpleAxisServer] Shutting down. Error starting SimpleAxisServer", t);
        System.exit(1); // must stop application
    }
}
 
Example 19
Source File: Axis2Handler.java    From wandora with GNU General Public License v3.0 4 votes vote down vote up
public void start(WandoraWebApp app, WandoraWebAppServer server){
        try{
            TopicMapService.wandora=server.getWandora();
            TopicMapService.layerName=layer;
            TopicMapService.tm=null;
            webApp=app;

            ConfigurationContext context=ConfigurationContextFactory.createConfigurationContextFromFileSystem(null,null);
            AxisConfiguration axisConfig=context.getAxisConfiguration();
//            axisConfig.addParameter("httpContentNegotiation", "true");

            axisConfig.addMessageFormatter("application/json", new org.apache.axis2.json.JSONMessageFormatter());
            axisConfig.addMessageFormatter("application/json/badgerfish", new org.apache.axis2.json.JSONBadgerfishMessageFormatter());
            axisConfig.addMessageFormatter("text/javascript", new org.apache.axis2.json.JSONMessageFormatter());

            axisConfig.addMessageBuilder("application/json", new org.apache.axis2.json.JSONOMBuilder());
            axisConfig.addMessageBuilder("application/json/badgerfish", new org.apache.axis2.json.JSONBadgerfishOMBuilder());
            axisConfig.addMessageBuilder("text/javascript", new org.apache.axis2.json.JSONOMBuilder());

            AxisService service=AxisService.createService(TopicMapService.class.getName(), axisConfig);
            axisConfig.addService(service);

            AxisServlet axisServlet=new AxisServlet(){
                @Override
                protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException {
                    super.doGet(request, response);
                    response.getOutputStream().flush();
                }
            };

//            ServletHolder holder=new ServletHolder(axisServlet);
//            jettyContext=new Context(server.getJetty(),"/"+app.getName(),Context.SESSIONS);
//            jettyContext.getServletContext().setAttribute(AxisServlet.CONFIGURATION_CONTEXT, context);
//            jettyContext.addServlet(holder,"/*");

//            SimpleHTTPServer simple=new SimpleHTTPServer(context,8900);
//            simple.start();


        }catch(Exception e){
            e.printStackTrace();
        }
    }
 
Example 20
Source File: SOAPContextHandler.java    From scipio-erp with Apache License 2.0 4 votes vote down vote up
protected static ConfigurationContext createConfigurationContext(String axis2RepoLocation, String axis2XmlFileLocation) throws AxisFault {
    return ConfigurationContextFactory.createConfigurationContextFromFileSystem(axis2RepoLocation, axis2XmlFileLocation);
}