use of org.springframework.ws.soap.client.SoapFaultClientException in project camel by apache.
the class AbstractConsumerTests method defaultAction4fault.
@Test
public void defaultAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://default-fault.com/");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(getDefaultResponseAction());
}
use of org.springframework.ws.soap.client.SoapFaultClientException in project camel by apache.
the class AbstractConsumerTests method headerAction4fault.
@Test
@Ignore(value = "Not implemented yet")
public void headerAction4fault() throws Exception {
ActionCallback requestCallback = channelIn("http://headerOnly-fault.com");
try {
webServiceTemplate.sendSourceAndReceiveToResult(source, requestCallback, result);
} catch (SoapFaultClientException e) {
// ok - cause fault response
}
Assertions.assertThat(channelOut().getAction()).isEqualTo(new URI("http://faultHeader.com"));
}
Aggregations