Examples of loadCatalog()


Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

        // update catalog dynamically now
        URL jaxwscatalog =
            getClass().getResource("/META-INF/jax-ws-catalog.xml");
        assertNotNull(jaxwscatalog);

        catalog.loadCatalog(jaxwscatalog);

        SOAPService service = new SOAPService(wsdl, serviceName);
        Greeter greeter = service.getPort(portName, Greeter.class);
        assertNotNull(greeter);
    }
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

                catalogLocation = catalogLocation == null
                    ? SchemaHandler.DEFAULT_CATALOG_LOCATION : catalogLocation;
                URL catalogURL = ResourceUtils.getResourceURL(catalogLocation, bus);
                if (catalogURL != null) {
                    try {
                        catalogResolver.loadCatalog(catalogURL);
                        factory.setResourceResolver(new LSResourceResolver() {
   
                            public LSInput resolveResource(String type, String namespaceURI, String publicId,
                                                           String systemId, String baseURI) {
                                try {
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

    }
       
    public static void loadOASISCatalog(Bus bus, URL catalogURL) {
        OASISCatalogManager catalog = new OASISCatalogManager();
        try {
            catalog.loadCatalog(catalogURL);
            LOG.debug("Loaded " + catalogURL + " catalog.");
            bus.setExtension(catalog, OASISCatalogManager.class);
        } catch (IOException e) {
            LOG.warn("Failed to load catalog file: " + catalogURL, e);
        }       
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

                catalogLocation = catalogLocation == null
                    ? SchemaHandler.DEFAULT_CATALOG_LOCATION : catalogLocation;
                URL catalogURL = ResourceUtils.getResourceURL(catalogLocation, bus);
                if (catalogURL != null) {
                    try {
                        catalogResolver.loadCatalog(catalogURL);
                        factory.setResourceResolver(new LSResourceResolver() {
   
                            public LSInput resolveResource(String type, String namespaceURI, String publicId,
                                                           String systemId, String baseURI) {
                                try {
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

    }

    private static void loadOASISCatalog(Bus bus, URL catalogURL) {
        OASISCatalogManager catalog = new OASISCatalogManager();
        try {
            catalog.loadCatalog(catalogURL);
            logger.debug("Loaded " + catalogURL + " catalog.");
            bus.setExtension(catalog, OASISCatalogManager.class);
        } catch (IOException e) {
            logger.warning("Failed to load catalog file: " + catalogURL, e);
        }
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

        OASISCatalogManager catalogManager = new OASISCatalogManager();

        URL jaxwscatalog = getClass().getResource("/META-INF/jax-ws-catalog.xml");
        assertNotNull(jaxwscatalog);

        catalogManager.loadCatalog(jaxwscatalog);

        String xsd = "http://www.w3.org/2005/08/addressing/ws-addr.xsd";
        String resolvedSchemaLocation = catalogManager.resolveSystem(xsd);
        assertEquals("classpath:/schemas/wsdl/ws-addr.xsd", resolvedSchemaLocation);
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

        OASISCatalogManager catalogManager = bus.getExtension(OASISCatalogManager.class);
       
        String catalogLocation = getCatalogURL();
        if (!StringUtils.isEmpty(catalogLocation)) {
            try {
                catalogManager.loadCatalog(new URI(catalogLocation).toURL());
            } catch (Exception e) {
                e.printStackTrace(err);
                throw new ToolException(new Message("FOUND_NO_FRONTEND", LOG, catalogLocation));
            }
        }
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

    }

    private static void loadOASISCatalog(final Bus bus, final URL catalogURL) {
        final OASISCatalogManager catalog = new OASISCatalogManager();
        try {
            catalog.loadCatalog(catalogURL);
            logger.debug("Loaded " + catalogURL + " catalog.");
            bus.setExtension(catalog, OASISCatalogManager.class);
        } catch (final IOException e) {
            logger.warning("Failed to load catalog file: " + catalogURL, e);
        }
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

    }
   
    private static void loadOASISCatalog(Bus bus, URL catalogURL) {
        OASISCatalogManager catalog = new OASISCatalogManager();
        try {
            catalog.loadCatalog(catalogURL);
            LOG.debug("Loaded " + catalogURL + " catalog.");
            bus.setExtension(catalog.getCatalog(), Catalog.class);
        } catch (IOException e) {
            LOG.warn("Failed to load catalog file: " + catalogURL, e);
        }       
View Full Code Here

Examples of org.apache.cxf.catalog.OASISCatalogManager.loadCatalog()

        // update catalog dynamically now
        URL jaxwscatalog =
            getClass().getResource("/META-INF/jax-ws-catalog.xml");
        assertNotNull(jaxwscatalog);

        catalog.loadCatalog(jaxwscatalog);

        SOAPService service = new SOAPService(wsdl, serviceName);
        Greeter greeter = service.getPort(portName, Greeter.class);
        assertNotNull(greeter);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.