Package org.apache.schema_validation.types

Examples of org.apache.schema_validation.types.SomeFault


    public SomeResponse doSomething(SomeRequest in) throws DoSomethingFault {
        SomeResponse response = new SomeResponse();
        if (in.getId().equals("1234567890")) {
            response.setTransactionId("aaaaaaaaaaxxx"); // invalid transaction id
        } else if (in.getId().equals("9999999999")) {
            SomeFault someFault = new SomeFault();
            someFault.setErrorCode("1234");
            throw new DoSomethingFault("Fault", someFault);
        } else if (in.getId().equals("8888888888")) {
            SomeFault someFault = new SomeFault();
            someFault.setErrorCode("1");
            throw new DoSomethingFault("Fault", someFault);
        } else {
            response.setTransactionId("aaaaaaaaaa");
        }
       
View Full Code Here

TOP

Related Classes of org.apache.schema_validation.types.SomeFault

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.