//change the import location in wsdl file
OutputStream wsdloutput = new BufferedOutputStream(new FileOutputStream(wsdlFile));
WSDLWriter wsdlWriter = WSDLFactory.newInstance().newWSDLWriter();
ByteArrayOutputStream bout = new ByteArrayOutputStream();
wsdlWriter.writeWSDL(def, bout);
Element defEle = XMLUtils.parse(bout.toByteArray()).getDocumentElement();
List<Element> xsdElements = DOMUtils.findAllElementsByTagNameNS(defEle,
WSDLConstants.NS_SCHEMA_XSD,
"schema");
for (Element xsdEle : xsdElements) {