use of org.apache.headers.coloc.types.PingMeResponseT in project cxf by apache.
the class AbstractHeaderServiceRpcLitTest method verifyTwoWay.
public void verifyTwoWay(HeaderTester ht) {
getLogger().debug("Client: calling pingMe");
PingMeT in = new PingMeT();
try {
in.setFaultType("ABCD");
PingMeResponseT ret = ht.pingMe(in);
assertNotNull(ret);
} catch (Exception ex) {
fail("Should not throw any exception");
}
}
use of org.apache.headers.coloc.types.PingMeResponseT in project cxf by apache.
the class BaseHeaderTesterRpcLitImpl method pingMe.
public PingMeResponseT pingMe(PingMeT in) throws PingMeFault {
String msgType = in.getFaultType();
getLogger().debug("Server: in pingMe:" + msgType);
if ("USER".equals(msgType)) {
FaultDetailT detail = new FaultDetailT();
detail.setMajor((short) 1);
detail.setMinor((short) 2);
throw new PingMeFault("USER FAULT TEST", detail);
} else if ("SYSTEM".equals(msgType)) {
throw new Fault(new Message(HeaderTesterUtil.EX_STRING, (ResourceBundle) null, new Object[] { "FAULT TEST" }));
} else if ("RUNTIME".equals(msgType)) {
throw new IllegalArgumentException(HeaderTesterUtil.EX_STRING);
}
return new PingMeResponseT();
}
Aggregations