Package javax.xml.ws.handler

Examples of javax.xml.ws.handler.LogicalMessageContext


    /**
     * Tests the setting of the payload when the original content is a fault.
     * @throws Exception
     */
    public void testGetAndSetFaultPayloadAsSource() throws Exception {
        LogicalMessageContext lmc = createSampleFaultContext();
       
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);
       
        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
       
View Full Code Here


    /**
     * Test the JAXB based APIs on the LogicalMessage interface.
     * @throws Exception
     */
    public void testGetPayloadAsJAXB() throws Exception {
        LogicalMessageContext lmc = createSampleContext();
               
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);
       
        JAXBContext jbc = JAXBContext.newInstance("test");
       
        Object obj = msg.getPayload(jbc);
View Full Code Here

        assertTrue("The EchoString object had bad input: " + echo.getInput(), echo.getInput().equals(INPUT));
    }
   
   
    public void testConvertMessageToFault() throws Exception {
        LogicalMessageContext lmc = createSampleContext();
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);

        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
View Full Code Here

       
        MessageContext mc = new MessageContext();
        mc.setMEPContext(new MEPContext(mc));
        mc.setMessage(msg);
       
        LogicalMessageContext lmc = MessageContextFactory.createLogicalMessageContext(mc);
       
        return lmc;
    }
View Full Code Here

       
        MessageContext mc = new MessageContext();
        mc.setMEPContext(new MEPContext(mc));
        mc.setMessage(msg);
       
        LogicalMessageContext lmc = MessageContextFactory.createLogicalMessageContext(mc);
       
        return lmc;
    }
View Full Code Here

    /**
     * Test the javax.xml.transform.Source based APIs on the LogicalMessage interface.
     * @throws Exception
     */
    public void testGetPayloadAsSource() throws Exception {
        LogicalMessageContext lmc = createSampleContext();
       
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);
       
        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
       
View Full Code Here

    /**
     * Tests the setting of the payload and make sure we don't cache improperly.
     * @throws Exception
     */
    public void testGetAndSetPayloadAsSource() throws Exception {
        LogicalMessageContext lmc = createSampleContext();
       
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);
       
        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
       
View Full Code Here

    /**
     * Test to make sure we can get the payload multiple times from the same LogicalMessage.
     * @throws Exception
     */
    public void testGetMultiplePayloadsAsSource() throws Exception {
        LogicalMessageContext lmc = createSampleContext();

        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);

        int loopCount = 3;
        for (int i = 0; i < loopCount; ++i) {
            Source payload = msg.getPayload();
View Full Code Here

    /**
     * Tests the setting of the payload when the original content is a fault.
     * @throws Exception
     */
    public void testGetAndSetFaultPayloadAsSource() throws Exception {
        LogicalMessageContext lmc = createSampleFaultContext();
       
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);
       
        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
       
View Full Code Here

//        assertTrue("The EchoString object had bad input: " + echo.getInput(), echo.getInput().equals(INPUT));
//    }
   
   
    public void testConvertMessageToFault() throws Exception {
        LogicalMessageContext lmc = createSampleContext();
        LogicalMessage msg = lmc.getMessage();
        assertTrue("The returned LogicalMessage was null", msg != null);

        Source payload = msg.getPayload();
        assertTrue("The returned payload (Source) was null", payload != null);
View Full Code Here

TOP

Related Classes of javax.xml.ws.handler.LogicalMessageContext

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.