SoapMessageUtils.registerDocumentFactoryXPathNamespaceURIs(factory, "xsd", XSD_NS_URI);
SoapMessageUtils.registerDocumentFactoryXPathNamespaceURIs(factory, "wsdl", WSDL_NS_URI);
SoapMessageUtils.registerDocumentFactoryXPathNamespaceURIs(factory, "wsoap12", WSOAP12_NS_URI);
SoapMessageUtils.registerDocumentFactoryXPathNamespaceURIs(factory, "wsdl-dtc", WSDL_DTC_NS_URI);
XPP3Reader reader = new XPP3Reader();
Document doc;
try
{
doc = reader.read(getClass().getResourceAsStream(resource));
}
catch (Exception e)
{
e.printStackTrace();
wsdl = "Could not generate a WSDL document...";