Package org.objectweb.hello_world_xml_http.wrapped.types

Examples of org.objectweb.hello_world_xml_http.wrapped.types.FaultDetail


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

    public void pingMe() throws PingMeFault {
        FaultDetail faultDetail = new FaultDetail();
        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", faultDetail);
    }
View Full Code Here


    public void testWrappedMarshalFault() throws Exception {

        xmlContext.put(ObjectMessageContext.MESSAGE_INPUT, false);

        String exMessage = new String("Test Exception");
        FaultDetail ec = new FaultDetail();
        ec.setMajor((short)2);
        ec.setMinor((short)1);
        PingMeFault ex = new PingMeFault(exMessage, ec);
        objContext.setException(ex);

        binding.marshalFault(objContext,
                             xmlContext,
View Full Code Here

        Object faultEx = objContext.getException();
       
        assertTrue(PingMeFault.class.isAssignableFrom(faultEx.getClass()));
        PingMeFault nscf = (PingMeFault)faultEx;
        assertNotNull(nscf.getFaultInfo());
        FaultDetail faultInfo = nscf.getFaultInfo();

        assertEquals(faultInfo.getMajor(), (short)2);
        assertEquals(faultInfo.getMinor(), (short)1);
        assertEquals("org.objectweb.hello_world_xml_http.wrapped.PingMeFault: PingMeFault raised by server",
                     nscf.getMessage());
    }
View Full Code Here

    public String sayHi() {
        return "Bonjour";
    }

    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

Related Classes of org.objectweb.hello_world_xml_http.wrapped.types.FaultDetail

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.