Search in sources :

Example 1 with WSDLFactoryImpl

use of com.ibm.wsdl.factory.WSDLFactoryImpl in project pentaho-platform by pentaho.

the class AxisUtil method getWsdlDefinition.

public static Definition getWsdlDefinition(AxisConfiguration axisConfig, IServiceConfig webservice) throws Exception {
    String wsdlStr = getWsdl(axisConfig, webservice);
    InputStream in = new ByteArrayInputStream(wsdlStr.getBytes());
    InputSource source = new InputSource(in);
    WSDLFactoryImpl factory = new WSDLFactoryImpl();
    WSDLReader reader = factory.newWSDLReader();
    // $NON-NLS-1$
    Definition def = reader.readWSDL("", source);
    return def;
}
Also used : InputSource(org.xml.sax.InputSource) ByteArrayInputStream(java.io.ByteArrayInputStream) ByteArrayInputStream(java.io.ByteArrayInputStream) InputStream(java.io.InputStream) Definition(javax.wsdl.Definition) WSDLFactoryImpl(com.ibm.wsdl.factory.WSDLFactoryImpl) WSDLReader(javax.wsdl.xml.WSDLReader)

Aggregations

WSDLFactoryImpl (com.ibm.wsdl.factory.WSDLFactoryImpl)1 ByteArrayInputStream (java.io.ByteArrayInputStream)1 InputStream (java.io.InputStream)1 Definition (javax.wsdl.Definition)1 WSDLReader (javax.wsdl.xml.WSDLReader)1 InputSource (org.xml.sax.InputSource)1