Search in sources :

Example 6 with FaultDetail

use of org.apache.hello_world_soap_http.types.FaultDetail in project camel by apache.

the class GreeterImpl method pingMe.

public void pingMe(String messageIn) throws PingMeFault {
    FaultDetail faultDetail = new FaultDetail();
    faultDetail.setMajor((short) 2);
    faultDetail.setMinor((short) 1);
    LOG.info("Executing operation pingMe, throwing PingMeFault exception, message = " + messageIn);
    System.out.println("Executing operation pingMe, throwing PingMeFault exception\n");
    throw new PingMeFault("PingMeFault raised by server", faultDetail);
}
Also used : PingMeFault(org.apache.hello_world_soap_http.PingMeFault) FaultDetail(org.apache.hello_world_soap_http.types.FaultDetail)

Example 7 with FaultDetail

use of org.apache.hello_world_soap_http.types.FaultDetail in project camel by apache.

the class GreeterImpl method pingMe.

public void pingMe(String messageIn) throws PingMeFault {
    FaultDetail faultDetail = new FaultDetail();
    faultDetail.setMajor((short) 2);
    faultDetail.setMinor((short) 1);
    LOG.info("Executing operation pingMe, throwing PingMeFault exception, message = " + messageIn);
    LOG.info("Executing operation pingMe, throwing PingMeFault exception\n");
    throw new PingMeFault("PingMeFault raised by server", faultDetail);
}
Also used : PingMeFault(org.apache.hello_world_soap_http.PingMeFault) FaultDetail(org.apache.hello_world_soap_http.types.FaultDetail)

Aggregations

PingMeFault (org.apache.hello_world_soap_http.PingMeFault)7 FaultDetail (org.apache.hello_world_soap_http.types.FaultDetail)7 Greeter (org.apache.hello_world_soap_http.Greeter)3 Test (org.junit.Test)2 Message (org.apache.camel.Message)1