Package javax.wsdl.factory

Examples of javax.wsdl.factory.WSDLFactory


        throws WSDLException {
        Trc.entry(null, documentBase, reader, cl);

        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        WSIFWSDLLocatorImpl lo = null;
        try {
            lo = new WSIFWSDLLocatorImpl(documentBase, reader, cl);
            Definition def = wsdlReader.readWSDL(lo);
View Full Code Here


        throws WSDLException {
        Trc.entry(null, contextURL, wsdlLoc, cl);

        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        WSIFWSDLLocatorImpl lo = null;

        try {
            String url = (contextURL == null) ? null : contextURL.toString();
View Full Code Here

        throws WSDLException {
        Trc.entry(null, contextURL, reader);

        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def =
            wsdlReader.readWSDL(contextURL, new InputSource(reader));
        Trc.exitExpandWsdl(def);
        return def;
View Full Code Here

        throws WSDLException {
        Trc.entry(null, contextURL, wsdlDocument);

        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def = wsdlReader.readWSDL(contextURL, wsdlDocument);

        Trc.exitExpandWsdl(def);
        return def;
View Full Code Here

        throws WSDLException {
        Trc.entry(null, contextURL, wsdlServicesElement);

        initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def = wsdlReader.readWSDL(contextURL, wsdlServicesElement);

        Trc.exitExpandWsdl(def);
        return def;
View Full Code Here

     */
    public static void writeWSDL(Definition def, Writer sink)
        throws WSDLException {
        Trc.entry(null, def, sink);

        WSDLFactory factory = WSDLFactory.newInstance(
            WSIFConstants.WSIF_WSDLFACTORY);
        WSDLWriter wsdlWriter = factory.newWSDLWriter();
        wsdlWriter.writeWSDL(def, sink);

        Trc.exit();
    }
View Full Code Here

            Properties props = System.getProperties();
            String oldPropValue = props.getProperty(DEF_FACTORY_PROPERTY_NAME);

            props.setProperty(DEF_FACTORY_PROPERTY_NAME, PRIVATE_DEF_FACTORY_CLASS);

            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLReader wsdlReader = factory.newWSDLReader();
            wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
            String context = null;
            if (contextURL != null)
                context = contextURL.toString();
            Definition def = wsdlReader.readWSDL(context, wsdlLoc);
View Full Code Here

        }
    }

    private static boolean writeWSDL(Definition def) {
        try {
            WSDLFactory factory = WSDLFactory.newInstance();
            WSDLWriter wsdlWriter = factory.newWSDLWriter();
            File f = new File(WSDL_OUT);
            FileWriter out = new FileWriter(f);
            wsdlWriter.writeWSDL(def, out);
            out.close();
            debug("--- Definition written OK ---");
View Full Code Here

    private static Definition createDefinition(InputSource wsdl)
            throws WSDLException {

        WSIFUtils.initializeProviders();

        WSDLFactory factory = WSDLFactory.newInstance(
                WSIFConstants.WSIF_WSDLFACTORY);
        WSDLReader wsdlReader = factory.newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        Definition def =
                wsdlReader.readWSDL(null, wsdl);

        return def;
View Full Code Here

  protected void processWsdl(URL wsdl) throws IOException, WSDLException {
    // xmlSchema reader
    XmlSchemaCollection xmlSchemaCollection = new XmlSchemaCollection();
    xmlSchemaCollection.setBaseUri(wsdl.toString());
    // wsdl
    WSDLFactory wsdlFactory = WSDLFactory.newInstance();
    WSDLReader reader = wsdlFactory.newWSDLReader();
    Definition definition = reader.readWSDL(wsdl.toString());
    // extract
    processWsdlTypes(definition.getTypes(), xmlSchemaCollection);
  }
View Full Code Here

TOP

Related Classes of javax.wsdl.factory.WSDLFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.