Examples of FaultDetailDocument


Examples of org.apache.helloWorldSoapHttp.types.FaultDetailDocument

        try {
            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.types.FaultDetailDocument

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

Examples of org.apache.helloWorldSoapHttp.types.FaultDetailDocument

        try {
            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.types.FaultDetailDocument

        try {
            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

        return "Bonjour";
    }
   
    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

       
        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

       
        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");
View Full Code Here

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

       
        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

        return "Bonjour";
    }
   
    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

       
        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
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.