01: package org.objectweb.celtix.systest.securebasic;
02:
03: import javax.jws.WebService;
04:
05: import org.objectweb.hello_world_soap_http_secure.Greeter;
06: import org.objectweb.hello_world_soap_http_secure.types.Result;
07:
08: @WebService(serviceName="SecureSOAPService",portName="SoapPort",endpointInterface="org.objectweb.hello_world_soap_http_secure.Greeter",targetNamespace="http://objectweb.org/hello_world_soap_http_secure")
09: public class GreeterImpl implements Greeter {
10:
11: public Result greetMeTwoTier(String me, int testIndex) {
12: Result ret = new Result();
13: if (Matrix.TWO_TIER_TESTS[testIndex].targetData.targetExpectSuccess) {
14: ret.setDidPass(Matrix.SUCCEED);
15: ret.setReturnString("Hello " + me);
16: ret.setFailureReason("");
17: } else {
18: ret.setDidPass(Matrix.FAIL);
19: ret.setReturnString("");
20: ret
21: .setFailureReason("Shouldn't have been able to contact GreeterImpl.greetme, testIndex = "
22: + testIndex);
23: }
24: return ret;
25: }
26:
27: public Result greetMeThreeTier(String me, int testIndex) {
28: Result ret = new Result();
29: if (Matrix.THREE_TIER_TESTS[testIndex].targetData.targetExpectSuccess) {
30: ret.setDidPass(Matrix.SUCCEED);
31: ret.setReturnString("Hello " + me);
32: ret.setFailureReason("");
33: } else {
34: ret.setDidPass(Matrix.FAIL);
35: ret.setReturnString("");
36: ret
37: .setFailureReason("Shouldn't have been able to contact GreeterImpl.greetme, testIndex = "
38: + testIndex);
39: }
40: return ret;
41: }
42:
43: }
|