use of javax.wsdl.factory.WSDLFactory in project jbossws-cxf by jbossws.
the class JBWS2960TestCase method getWSDLDefinition.
private Definition getWSDLDefinition(final String wsdlLocation) throws Exception {
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
return wsdlReader.readWSDL(null, wsdlLocation);
}
use of javax.wsdl.factory.WSDLFactory in project jbossws-cxf by jbossws.
the class EarTestCase method getWSDLDefinition.
private Definition getWSDLDefinition(String wsdlLocation) throws Exception {
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
Definition definition = wsdlReader.readWSDL(null, wsdlLocation);
return definition;
}
use of javax.wsdl.factory.WSDLFactory in project pentaho-kettle by pentaho.
the class Wsdl method getReader.
/**
* Get a WSDLReader.
*
* @return WSDLReader.
* @throws WSDLException
* on error.
*/
private WSDLReader getReader() throws WSDLException {
WSDLFactory wsdlFactory = WSDLFactory.newInstance();
WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
ExtensionRegistry registry = wsdlFactory.newPopulatedExtensionRegistry();
wsdlReader.setExtensionRegistry(registry);
wsdlReader.setFeature("javax.wsdl.verbose", true);
wsdlReader.setFeature("javax.wsdl.importDocuments", true);
return wsdlReader;
}
Aggregations