/**
* Test throwing checked exception w/o a JAXB Bean
*/
public void testProcess_CheckException() throws Exception {
Greeter proxy = getProxy("process");
TestBean request = new TestBean();
request.setData1("hello world");
request.setData2(10);
try {
TestBean response = proxy.process(1, request);
fail("Expected TestException thrown");
} catch (WebServiceException wse) {
// Currently there is no support if the fault bean is missing
assertTrue(wse.getMessage().contains("User fault processing is not supported"));
} catch (TestException te) {
assertTrue(te.getMessage().equals("TestException thrown"));
assertTrue(te.getFlag() == 123);
} catch (Exception e) {
fail("Expected TestException thrown but found " + e.getClass());
}
// Try the call again to verify
try {
TestBean response = proxy.process(1, request);
fail("Expected TestException thrown");
} catch (WebServiceException wse) {
// Currently there is no support if the fault bean is missing
assertTrue(wse.getMessage().contains("User fault processing is not supported"));
} catch (TestException te) {