axisServiceGroup.setServiceGroupName( DescriptionBuilder.getShortFileName(currentFile.getName())); return buildServiceGroup(zin, currentFile, axisServiceGroup, wsdlServices, configCtx); in = new FileInputStream(file); axisServiceGroup.setServiceGroupName(currentFile.getName()); return buildServiceGroup(in, currentFile, axisServiceGroup, wsdlServices, configCtx); } catch (FileNotFoundException e) { throw new DeploymentException(
axisServiceGroup.setServiceGroupName( DescriptionBuilder.getShortFileName(currentFile.getName())); return buildServiceGroup(zin, currentFile, axisServiceGroup, wsdlServices, configCtx); in = new FileInputStream(file); axisServiceGroup.setServiceGroupName(currentFile.getName()); return buildServiceGroup(in, currentFile, axisServiceGroup, wsdlServices, configCtx); } catch (FileNotFoundException e) { throw new DeploymentException(
public ArrayList<AxisService> buildServiceGroup(OMElement serviceMetaData, DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup, Map<String, AxisService> wsdlServices, ConfigurationContext configCtx) throws XMLStreamException, AxisFault { String elementName = serviceMetaData.getLocalName(); if (TAG_SERVICE.equals(elementName)) { AxisService axisService = null; String serviceName = DescriptionBuilder.getShortFileName(currentFile.getName()); if (serviceName != null) { axisService = wsdlServices.get(serviceName); } if (axisService == null) { axisService = wsdlServices.get( DescriptionBuilder.getShortFileName(currentFile.getName())); } if (axisService == null) { axisService = new AxisService(serviceName); } else { axisService.setWsdlFound(true); axisService.setCustomWsdl(true); } axisService.setParent(axisServiceGroup); axisService.setClassLoader(currentFile.getClassLoader()); ServiceBuilder serviceBuilder = new ServiceBuilder(configCtx, axisService); serviceBuilder.setWsdlServiceMap(wsdlServices); AxisService service = serviceBuilder.populateService(serviceMetaData);
public ArrayList<AxisService> buildServiceGroup(OMElement serviceMetaData, DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup, Map<String, AxisService> wsdlServices, ConfigurationContext configCtx) throws XMLStreamException, AxisFault { String elementName = serviceMetaData.getLocalName(); if (TAG_SERVICE.equals(elementName)) { AxisService axisService = null; String serviceName = DescriptionBuilder.getShortFileName(currentFile.getName()); if (serviceName != null) { axisService = wsdlServices.get(serviceName); } if (axisService == null) { axisService = wsdlServices.get( DescriptionBuilder.getShortFileName(currentFile.getName())); } if (axisService == null) { axisService = new AxisService(serviceName); } else { axisService.setWsdlFound(true); axisService.setCustomWsdl(true); } axisService.setParent(axisServiceGroup); axisService.setClassLoader(currentFile.getClassLoader()); ServiceBuilder serviceBuilder = new ServiceBuilder(configCtx, axisService); serviceBuilder.setWsdlServiceMap(wsdlServices); AxisService service = serviceBuilder.populateService(serviceMetaData);
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault { try { DeploymentFileData currentDeploymentFile = new DeploymentFileData(serviceFile, null); DeploymentClassLoader classLoader = Utils.createClassLoader(serviceFile, configCtx.getAxisConfiguration().isChildFirstClassLoading()); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup(); serviceGroup.setServiceGroupClassLoader(classLoader); // Drop the extension and take the name String fileName = serviceFile.getName(); String serviceGroupName = fileName.substring(0, fileName.lastIndexOf(".")); serviceGroup.setServiceGroupName(serviceGroupName); AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); ArchiveReader archiveReader = new ArchiveReader(); HashMap<String, AxisService> wsdlServices = archiveReader.processWSDLs(currentDeploymentFile); InputStream serviceXml = classLoader.getResourceAsStream("META-INF/services.xml"); ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(serviceXml, currentDeploymentFile, serviceGroup, wsdlServices, configCtx); fillServiceGroup(serviceGroup, serviceList, null, axisConfig); return serviceGroup; } catch (Exception e) { throw new DeploymentException(e); } }
public static AxisServiceGroup loadServiceGroup(File serviceFile, ConfigurationContext configCtx) throws AxisFault { try { DeploymentFileData currentDeploymentFile = new DeploymentFileData(serviceFile, null); DeploymentClassLoader classLoader = Utils.createClassLoader(serviceFile, configCtx.getAxisConfiguration().isChildFirstClassLoading()); currentDeploymentFile.setClassLoader(classLoader); AxisServiceGroup serviceGroup = new AxisServiceGroup(); serviceGroup.setServiceGroupClassLoader(classLoader); // Drop the extension and take the name String fileName = serviceFile.getName(); String serviceGroupName = fileName.substring(0, fileName.lastIndexOf(".")); serviceGroup.setServiceGroupName(serviceGroupName); AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); ArchiveReader archiveReader = new ArchiveReader(); HashMap<String, AxisService> wsdlServices = archiveReader.processWSDLs(currentDeploymentFile); InputStream serviceXml = classLoader.getResourceAsStream("META-INF/services.xml"); ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(serviceXml, currentDeploymentFile, serviceGroup, wsdlServices, configCtx); fillServiceGroup(serviceGroup, serviceList, null, axisConfig); return serviceGroup; } catch (Exception e) { throw new DeploymentException(e); } }
public ArrayList<AxisService> processServiceGroup(OMElement serviceMetaData, DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup, boolean extractService, Map<String, AxisService> wsdlServices, ConfigurationContext configCtx) throws AxisFault { Object serviceMetaDataObject; try { if (serviceMetaData == null) { serviceMetaDataObject = currentFile.getServiceMetaData(); if (serviceMetaDataObject != null && serviceMetaDataObject instanceof OMElement) { serviceMetaData = (OMElement) serviceMetaDataObject; } } if (serviceMetaData != null) { if(!extractService){ axisServiceGroup.setServiceGroupName( DescriptionBuilder.getShortFileName(currentFile.getName())); } else { axisServiceGroup.setServiceGroupName(currentFile.getName()); } return buildServiceGroup(serviceMetaData, currentFile, axisServiceGroup, wsdlServices, configCtx); } throw new DeploymentException("Can not find service meta data file"); } catch (XMLStreamException e) { throw new DeploymentException(e); } }
public ArrayList<AxisService> processServiceGroup(OMElement serviceMetaData, DeploymentFileData currentFile, AxisServiceGroup axisServiceGroup, boolean extractService, Map<String, AxisService> wsdlServices, ConfigurationContext configCtx) throws AxisFault { Object serviceMetaDataObject; try { if (serviceMetaData == null) { serviceMetaDataObject = currentFile.getServiceMetaData(); if (serviceMetaDataObject != null && serviceMetaDataObject instanceof OMElement) { serviceMetaData = (OMElement) serviceMetaDataObject; } } if (serviceMetaData != null) { if(!extractService){ axisServiceGroup.setServiceGroupName( DescriptionBuilder.getShortFileName(currentFile.getName())); } else { axisServiceGroup.setServiceGroupName(currentFile.getName()); } return buildServiceGroup(serviceMetaData, currentFile, axisServiceGroup, wsdlServices, configCtx); } throw new DeploymentException("Can not find service meta data file"); } catch (XMLStreamException e) { throw new DeploymentException(e); } }
AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); try { ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(servicesxml, currentDeploymentFile, serviceGroup,
AxisConfiguration axisConfig = configCtx.getAxisConfiguration(); try { ArrayList<AxisService> serviceList = archiveReader.buildServiceGroup(servicesxml, currentDeploymentFile, serviceGroup,