Java Code Examples for org.apache.axis2.deployment.DeploymentEngine#buildModule()
The following examples show how to use
org.apache.axis2.deployment.DeploymentEngine#buildModule() .
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: UtilServer.java From micro-integrator with Apache License 2.0 | 6 votes |
public static ServiceContext createAdressedEnabledClientSide( AxisService service) throws AxisFault { File file = getAddressingMARFile(); TestCase.assertTrue(file.exists()); ConfigurationContext configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem( "target/test-resources/integrationRepo", null); AxisModule axisModule = DeploymentEngine.buildModule(file, configContext.getAxisConfiguration()); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); axisConfiguration.addModule(axisModule); axisConfiguration.addService(service); ServiceGroupContext serviceGroupContext = configContext.createServiceGroupContext((AxisServiceGroup) service.getParent()); return serviceGroupContext.getServiceContext(service); }
Example 2
Source File: UtilServer.java From micro-integrator with Apache License 2.0 | 6 votes |
public static ServiceContext createAdressedEnabledClientSide( AxisService service, String clientHome) throws AxisFault { File file = getAddressingMARFile(); TestCase.assertTrue(file.exists()); ConfigurationContext configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem(clientHome, null); AxisConfiguration axisConfiguration = configContext.getAxisConfiguration(); AxisModule axisModule = DeploymentEngine.buildModule(file,axisConfiguration); axisConfiguration.addModule(axisModule); axisConfiguration.addService(service); ServiceGroupContext serviceGroupContext = configContext.createServiceGroupContext((AxisServiceGroup) service.getParent()); return serviceGroupContext.getServiceContext(service); }
Example 3
Source File: UtilServer.java From micro-integrator with Apache License 2.0 | 5 votes |
public static ConfigurationContext createClientConfigurationContext() throws AxisFault { File file = getAddressingMARFile(); TestCase.assertTrue(file.exists()); ConfigurationContext configContext = ConfigurationContextFactory .createConfigurationContextFromFileSystem( "target/test-resources/integrationRepo", "target/test-resources/integrationRepo/conf/axis2.xml"); AxisModule axisModule = DeploymentEngine.buildModule(file, configContext.getAxisConfiguration()); configContext.getAxisConfiguration().addModule(axisModule); return configContext; }