private Log log = LogFactory.getLog(getClass());
private AxisService processWSDLFile(InputStream in) throws DeploymentException {
try {
WOMBuilder builder = WOMBuilderFactory.getBuilder(WSDLConstants.WSDL_1_1);
WSDLVersionWrapper wsdlVersionWrapper = builder.build(in,
new AxisDescWSDLComponentFactory());
WSDLDescription womDescription = wsdlVersionWrapper.getDescription();
//removing binding
// Map bindings = wsdlVersionWrapper.getDefinition().getBindings();
// Iterator binfingIterator = bindings.keySet().iterator();
// while (binfingIterator.hasNext()) {
// Object o = binfingIterator.next();
// bindings.remove(o) ;
//
// }
Iterator iterator = womDescription.getServices().keySet()
.iterator();
if (iterator.hasNext()) {
// remove <wsdl:service> and <wsdl:binding> elements from the service
// description we read in as we will be replacing them anyway.
WSDLServiceImpl serviceimpl = (WSDLServiceImpl)
womDescription.getServices().get(iterator.next());
AxisService service = new AxisService(serviceimpl);
service.setName(serviceimpl.getName());
service.setWSDLDefinition(wsdlVersionWrapper.getDefinition());
return service;
// depengine.getCurrentFileItem().addService(service);
}
} catch (WSDLException e) {
throw new DeploymentException(e);