Skip to content

Instantly share code, notes, and snippets.

Created April 22, 2012 18:02
/*service implementation class*/
ProcessAndInstanceManagementImpl pm=new ProcessAndInstanceManagementImpl(server,_store);
ProcessAndInstanceManagement _processMgmt=pm;
Definition def;
try{
WSDLReader wsdlReader=WSDLFactory.newInstance().newWSDLReader();
wsdlReader.setFeature("javax.wsdl.verbose",false);
File wsdlFile=new File(rootpath+"/pmapi.wsdl"); /*specifing the wsdl location*/
def=wsdlReader.readWSDL(wsdlFile.toURI().toString());
AxisService processService=ODEAxisService.createService(axisConfig,PM_SERVICE_NAME,PM_PORT_NAME,
PM_AXIS2_NAME,def,new DynamicMessageReceiver(_processMgmt)); /*creating the axis2 service*/
axisConfig.addService(processService);
}catch(WSDLException e){
__log.error("Couldn't start-up management services!",e);
}catch(IOException e){
__log.error("Couldn't start-up management services!",e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment