Package javax.wsdl.xml

Examples of javax.wsdl.xml.WSDLLocator


        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            wsdl.serialize(baos);
            InputStream in = new ByteArrayInputStream(baos.toByteArray());
            InputSource inputSource = new InputSource(in);
            WSDLLocator wsdlLocator = new CustomWSDLLocator(inputSource, baseUri);
            Document doc = null;
            try {
                doc = XMLUtils.newDocument(inputSource);
            } catch (ParserConfigurationException e) {
                handleException("Parser Configuration Error", e);
View Full Code Here


            }
        }

        Catalog catalog = loadCatalog();

        WSDLLocator wsdlLocator = null;
        if (isURL(this.wsdlURI.toString())) {
            wsdlLocator = new CatalogWSDLLocator(this.wsdlURI.toString(), catalog);
        } else {
            wsdlLocator = new CatalogJarWSDLLocator(this.module.getModuleFile(), this.wsdlURI, catalog);
        }
View Full Code Here

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            wsdl.serialize(baos);
            InputStream in = new ByteArrayInputStream(baos.toByteArray());
            InputSource inputSource = new InputSource(in);
            WSDLLocator wsdlLocator = new CustomWSDLLocator(inputSource, baseUri);
            Document doc = null;
            try {
                doc = XMLUtils.newDocument(inputSource);
            } catch (ParserConfigurationException e) {
                handleException("Parser Configuration Error", e);
View Full Code Here

    public static void getTypeMappings(
      Definition def,
      Map table,
      ClassLoader loader,
      boolean includeStandardMappings) throws WSIFException {
    WSDLLocator  locator = new WSIFWSDLLocatorImpl((String) null, (String) null, loader);
        getTypeMappings(def, table, includeStandardMappings, locator);
    }
View Full Code Here

        ByteArrayOutputStream baos = new ByteArrayOutputStream();
        try {
            wsdl.serialize(baos);
            InputStream in = new ByteArrayInputStream(baos.toByteArray());
            InputSource inputSource = new InputSource(in);
            WSDLLocator wsdlLocator = new CustomWSDLLocator(inputSource,baseUri);
            Document doc = null;
            try {
                doc = XMLUtils.newDocument(inputSource);
            } catch (ParserConfigurationException e) {
                handleException("Parser Configuration Error", e);
View Full Code Here

            }
        }

        Catalog catalog = loadCatalog();

        WSDLLocator wsdlLocator = null;
        if (isURL(this.wsdlURI.toString())) {
            wsdlLocator = new CatalogWSDLLocator(this.wsdlURI.toString(), catalog);
        } else {
            wsdlLocator = new CatalogJarWSDLLocator(this.module.getModuleFile(), this.wsdlURI, catalog);
        }
View Full Code Here

    WSDLFactory factory = WSDLFactoryImpl.newInstance();
    WSDLReader reader = factory.newWSDLReader();
    URL url = ClassUtil.getResource(fileName, this.getClass());
    try {
      URI uri = url.toURI();
      WSDLLocator locator = new WSDLLocatorImpl(uri);
      wsdlDefinition = reader.readWSDL(locator);
    } catch (URISyntaxException e) {
      log.error(e.getMessage(),e);
    }
    return wsdlDefinition;
View Full Code Here

    Definition wsdlDefinition = null;
    WSDLFactory factory = WSDLFactoryImpl.newInstance();
    WSDLReader reader = factory.newWSDLReader();
    try {
      URI uri = wsdlUrl.toURI();
      WSDLLocator locator = new WSDLLocatorImpl(uri);
      wsdlDefinition = reader.readWSDL(locator);
    } catch (URISyntaxException e) {
      log.error(e.getMessage(),e);
    }
    return wsdlDefinition;
View Full Code Here

                                url = ClassUtil.getResource(fileName, this.getClass());
                        }
                        if (url==null)
                                throw new WSDLException("null input", fileName);
                        URI uri = url.toURI();
                        WSDLLocator locator = new WSDLLocatorImpl(uri);
                        wsdlDefinition = reader.readWSDL(locator);
                } catch (URISyntaxException e) {
                        log.error(e.getMessage(), e);
                } catch (MalformedURLException ex) {
                        log.error(ex.getMessage(), ex);
View Full Code Here

    protected Definition parse( InputSource source ) throws Exception {
        WSDLReader wsdlReader = javax.wsdl.factory.WSDLFactory.newInstance().newWSDLReader();
        wsdlReader.setFeature(Constants.FEATURE_VERBOSE, false);
        wsdlReader.setFeature(Constants.FEATURE_IMPORT_DOCUMENTS, false);
        // We use a custom WSDLLocator that never tries to resolve the import locations for WSDLs or XSDs.
        WSDLLocator locator = new CustomWSDLLocator(source, baseUri);
        return wsdlReader.readWSDL(locator);
    }
View Full Code Here

TOP

Related Classes of javax.wsdl.xml.WSDLLocator

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.