Package org.objectweb.schema_validation.types

Examples of org.objectweb.schema_validation.types.ComplexStruct


    public boolean setOccuringStruct(OccuringStruct in) {
        return true;
    }
   
    public ComplexStruct getComplexStruct(String in) {
        ComplexStruct complexStruct = new ComplexStruct();
        complexStruct.setElem1(in + "-one");
        // Don't initialize a member of the structure.  Validation should throw
        // an exception.
        // complexStruct.setElem2(in + "-two");
        complexStruct.setElem3(in.length());
        return complexStruct;
    }
View Full Code Here


        SchemaValidationService service = new SchemaValidationService(wsdl, serviceName);
        assertNotNull(service);
       
        SchemaValidation validation = service.getPort(portName, SchemaValidation.class);

        ComplexStruct complexStruct = new ComplexStruct();
        complexStruct.setElem1("one");
        // Don't initialize a member of the structure.  Validation should throw
        // an exception.
        // complexStruct.setElem2("two");
        complexStruct.setElem3(3);
        try {      
            /*boolean result =*/ validation.setComplexStruct(complexStruct);
            fail("Set ComplexStruct hould have thrown ProtocolException");
        } catch (ProtocolException e) {
            //System.out.println(e.getMessage());
View Full Code Here

TOP

Related Classes of org.objectweb.schema_validation.types.ComplexStruct

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.