Search in sources :

Example 26 with WSDLFactory

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);
}
Also used : WSDLFactory(javax.wsdl.factory.WSDLFactory) WSDLReader(javax.wsdl.xml.WSDLReader)

Example 27 with WSDLFactory

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;
}
Also used : WSDLFactory(javax.wsdl.factory.WSDLFactory) Definition(javax.wsdl.Definition) WSDLReader(javax.wsdl.xml.WSDLReader)

Example 28 with WSDLFactory

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;
}
Also used : WSDLFactory(javax.wsdl.factory.WSDLFactory) WSDLReader(javax.wsdl.xml.WSDLReader) ExtensionRegistry(javax.wsdl.extensions.ExtensionRegistry)

Aggregations

WSDLFactory (javax.wsdl.factory.WSDLFactory)28 WSDLReader (javax.wsdl.xml.WSDLReader)25 Definition (javax.wsdl.Definition)13 URL (java.net.URL)6 Service (javax.wsdl.Service)5 WSDLException (javax.wsdl.WSDLException)5 QName (javax.xml.namespace.QName)4 ArrayList (java.util.ArrayList)3 Port (javax.wsdl.Port)3 ExtensionRegistry (javax.wsdl.extensions.ExtensionRegistry)3 Bus (org.apache.cxf.Bus)3 BindingFactoryManager (org.apache.cxf.binding.BindingFactoryManager)3 DestinationFactoryManager (org.apache.cxf.transport.DestinationFactoryManager)3 WSDLManager (org.apache.cxf.wsdl.WSDLManager)3 CatalogWSDLLocator (org.apache.cxf.wsdl11.CatalogWSDLLocator)3 IOException (java.io.IOException)2 InvocationTargetException (java.lang.reflect.InvocationTargetException)2 Method (java.lang.reflect.Method)2 HashMap (java.util.HashMap)2 Hashtable (java.util.Hashtable)2