Package org.mule.module.ws.consumer

Examples of org.mule.module.ws.consumer.SoapFaultException


    protected void assertSoapFault(String address, String message, Map<String, Object> properties, String expectedFaultCode) throws Exception
    {
        MuleClient client = muleContext.getClient();
        MuleMessage response = client.send(address, message, properties);
        assertEquals(NullPayload.getInstance(), response.getPayload());
        SoapFaultException exception = (SoapFaultException) response.getExceptionPayload().getException();
        assertEquals(expectedFaultCode, exception.getFaultCode().getLocalPart());
    }
View Full Code Here


        {
            MuleMessage response = e.getEvent().getMessage();

            assertNotNull(response.getExceptionPayload());

            SoapFaultException soapFault = (SoapFaultException) response.getExceptionPayload().getException();
            assertTrue(soapFault.getMessage().startsWith("Hello"));
            assertEquals("Server", soapFault.getFaultCode().getLocalPart());
        }

    }
View Full Code Here

        assertXMLEqual(EXPECTED_SOAP_FAULT_DETAIL, response.getPayloadAsString());

        assertNull(response.getExceptionPayload());

        SoapFaultException soapFault = response.getOutboundProperty("soapFaultException");
        assertTrue(soapFault.getMessage().startsWith("Hello"));
        assertEquals("Server", soapFault.getFaultCode().getLocalPart());
    }
View Full Code Here

TOP

Related Classes of org.mule.module.ws.consumer.SoapFaultException

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.