Package org.springframework.xml.xsd.commons

Examples of org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection


    }

    @Test
    public void testInclude() throws Exception {
        ClassPathResource resource = new ClassPathResource("including.xsd", getClass());
        CommonsXsdSchemaCollection schemaCollection = new CommonsXsdSchemaCollection(new Resource[]{resource});
        schemaCollection.setInline(true);
        schemaCollection.afterPropertiesSet();
        definition.setSchemaCollection(schemaCollection);

        definition.setPortTypeName("Order");
        definition.setTargetNamespace("http://www.springframework.org/spring-ws/include/definitions");
        definition.setLocationUri("http://localhost:8080/");
View Full Code Here


    }

    @Test
    public void testImport() throws Exception {
        ClassPathResource resource = new ClassPathResource("importing.xsd", getClass());
        CommonsXsdSchemaCollection schemaCollection = new CommonsXsdSchemaCollection(new Resource[]{resource});
        schemaCollection.setInline(true);
        schemaCollection.afterPropertiesSet();
        definition.setSchemaCollection(schemaCollection);

        definition.setPortTypeName("Order");
        definition.setTargetNamespace("http://www.springframework.org/spring-ws/import/definitions");
        definition.setLocationUri("http://localhost:8080/");
View Full Code Here

        definition.setTargetNamespace(definitionNamespace);
        String schemaNamespace = "http://www.springframework.org/spring-ws/schema";
        definition.addNamespace("schema", schemaNamespace);

        Resource resource = new ClassPathResource("A.xsd", getClass());
        CommonsXsdSchemaCollection collection = new CommonsXsdSchemaCollection(new Resource[]{resource});
        collection.setInline(true);
        collection.afterPropertiesSet();

        provider.setSchemaCollection(collection);

        provider.addTypes(definition);
View Full Code Here

TOP

Related Classes of org.springframework.xml.xsd.commons.CommonsXsdSchemaCollection

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.