Examples of MarshallingOutHandler


Examples of org.jibx.ws.io.handler.MarshallingOutHandler

     */
    private SoapFault createFaultFor(Greetee greetee) throws WsException {
        SoapFault fault = new SoapFault(SoapFault.FAULT_CODE_SERVER, "ZorroFault in welcomeService",
            "http://example.ws.jibx.org/someactor");
        ZorroFault zorroFault = new ZorroFault(greetee.getName());
        fault.addDetailWriter(new MarshallingOutHandler(zorroFault));
        return fault;
    }
View Full Code Here

Examples of org.jibx.ws.io.handler.MarshallingOutHandler

     *
     * @param obj the object to include in the header
     * @throws WsException if binding cannot be found, or other error
     */
    public void addOutHeader(Object obj) throws WsException {
        addOutHeaderHandler(new MarshallingOutHandler(obj));
    }
View Full Code Here

Examples of org.jibx.ws.io.handler.MarshallingOutHandler

     * @throws Exception
     */
    public void testSendFaultMessageWithCustomHandlers() throws Exception {
        SoapFault fault = new SoapFault(SoapFault.FAULT_CODE_CLIENT, "Invalid message format",
            "http://example.org/someactor");
        MarshallingOutHandler detail1 = new MarshallingOutHandler(new ErrorMessage("There were lots of elements in the message that I did not understand"));
        MarshallingOutHandler detail2 = new MarshallingOutHandler(new ErrorType("Severe"));
        fault.addDetailWriter(detail1);
        fault.addDetailWriter(detail2);
        m_processor.sendFaultMessage(fault, StubbedChannel.getOutConnection());

        XMLUnit.setIgnoreWhitespace(true);
View Full Code Here

Examples of org.jibx.ws.io.handler.MarshallingOutHandler

        assertEquals("Character Encoding", conn.getCharacterEncoding(), "ENC");
    }

    public void testSendFaultMessageWithCustomHandlers() throws Exception {
        SoapFault fault = new SoapFault(SoapFault.FAULT_CODE_CLIENT, "Invalid message format", "http://example.org/someactor");
        MarshallingOutHandler detail1 = new MarshallingOutHandler(new ErrorMessage("There were lots of elements in the message that I did not understand"));
        MarshallingOutHandler detail2 = new MarshallingOutHandler(new ErrorType("Severe"));
        fault.addDetailWriter(detail1);
        fault.addDetailWriter(detail2);
        m_OutInProcessor.sendFaultMessage(fault, StubbedChannel.getOutConnection());

        XMLUnit.setIgnoreWhitespace(true);
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.