Examples of FaultDetail


Examples of org.apache.helloWorldSoapHttp.types.FaultDetailDocument.FaultDetail

            System.out.println("Invoking pingMe, expecting exception...");
            port.pingMe();
        } catch (PingMeFault ex) {
            System.out.println("Expected exception: PingMeFault has occurred: " + ex.getMessage());
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            System.out.println("FaultDetail major:" + detail.getMajor());
            System.out.println("FaultDetail minor:" + detail.getMinor());            
        }         
        System.exit(0);
    }
View Full Code Here

Examples of org.apache.helloWorldSoapHttp.xmlbeans.types.FaultDetailDocument.FaultDetail

   
    public void pingMe() throws PingMeFault {
        // here we need to put the FaultDetail into the FaultDetailDocument
        FaultDetailDocument faultDocument =
            org.apache.helloWorldSoapHttp.xmlbeans.types.FaultDetailDocument.Factory.newInstance();       
        FaultDetail faultDetail = faultDocument.addNewFaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");       
        throw new PingMeFault("PingMeFault raised by server", faultDocument);
    }
View Full Code Here

Examples of org.apache.helloWorldSoapHttp.xmlbeans.types.FaultDetailDocument.FaultDetail

        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
        }
       
    }
View Full Code Here

Examples of org.apache.helloWorldSoapHttp.xmlbeans.types.FaultDetailDocument.FaultDetail

        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
       
        try {
            port.greetMe("fault");
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
View Full Code Here

Examples of org.apache.helloWorldSoapHttp.xmlbeans.types.FaultDetailDocument.FaultDetail

        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor:", detail.getMinor(), 1);            
        }         
    }
View Full Code Here

Examples of org.apache.helloWorldSoapHttpXmlbeans.xmlbeans.types.FaultDetailDocument.FaultDetail

        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
        }
       
    }
View Full Code Here

Examples of org.apache.helloWorldSoapHttpXmlbeans.xmlbeans.types.FaultDetailDocument.FaultDetail

        try {
            port.pingMe();
            fail("We expect exception here");
        } catch (PingMeFault ex) {           
            FaultDetailDocument detailDocument = ex.getFaultInfo();
            FaultDetail detail = detailDocument.getFaultDetail();
            assertEquals("Wrong faultDetail major", detail.getMajor(), 2);
            assertEquals("Wrong faultDetail minor", detail.getMinor(), 1);            
       
        try {
            port.greetMe("fault");
            fail("Should have been a fault");
        } catch (GreetMeFault ex) {
View Full Code Here

Examples of org.apache.helloWorldSoapHttpXmlbeans.xmlbeans.types.FaultDetailDocument.FaultDetail

    public void pingMe() throws PingMeFault {
        // here we need to put the FaultDetail into the FaultDetailDocument
        FaultDetailDocument faultDocument =
            org.apache.helloWorldSoapHttpXmlbeans.xmlbeans.types.FaultDetailDocument
                .Factory.newInstance();       
        FaultDetail faultDetail = faultDocument.addNewFaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        LOG.info("Executing operation pingMe, throwing PingMeFault exception");       
        throw new PingMeFault("PingMeFault raised by server", faultDocument);
    }
View Full Code Here

Examples of org.apache.hello_world.types.FaultDetail

        System.out.println("Executing operation sayHi");
        return "Bonjour";
    }

    public void pingMe() throws PingMeFault {
        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
        throw new PingMeFault("PingMeFault raised by server", faultDetail);
    }
View Full Code Here

Examples of org.apache.hello_world.types.jbi.FaultDetail

    public void greetMeOneWay(String requestType) {
    }

    public void pingMe() throws PingMeFault {
        FaultDetail faultDetail = new FaultDetail();
        faultDetail.setMajor((short)2);
        faultDetail.setMinor((short)1);
        throw new PingMeFault("PingMeFault raised by server", faultDetail);
       
    }
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.