schema.write(writer);
writer.flush();
Document doc = domBuilder.parse(new ByteArrayInputStream(writer.toString().getBytes()));
Element documentElement = doc.getDocumentElement();
WSDLDescription womDescription;
WSDLComponentFactory wsdlComponentFactory = new WSDLDescriptionImpl();
womDescription = wsdlComponentFactory.createDescription();
HashMap namspaseMap = new HashMap();
namspaseMap.put("soap", "http://schemas.xmlsoap.org/wsdl/soap/");
namspaseMap.put(SchemaGenerator.TARGET_NAMESPACE_PRFIX, SchemaGenerator.TARGET_NAMESPACE);
namspaseMap.put("ns1", "http://org.apache.axis2/xsd");
namspaseMap.put("xs", "http://www.w3.org/2001/XMLSchema");