001: package org.objectweb.hello_world_soap_http;
002:
003: import java.util.concurrent.Future;
004: import java.util.logging.Logger;
005:
006: import javax.xml.ws.AsyncHandler;
007: import javax.xml.ws.Response;
008:
009: import org.objectweb.hello_world_soap_http.types.BareDocumentResponse;
010: import org.objectweb.hello_world_soap_http.types.ErrorCode;
011: import org.objectweb.hello_world_soap_http.types.GreetMeResponse;
012: import org.objectweb.hello_world_soap_http.types.GreetMeSometimeResponse;
013: import org.objectweb.hello_world_soap_http.types.NoSuchCodeLit;
014: import org.objectweb.hello_world_soap_http.types.SayHiResponse;
015: import org.objectweb.hello_world_soap_http.types.TestDocLitFaultResponse;
016:
017: public class NotAnnotatedGreeterImpl implements Greeter {
018:
019: private static final Logger LOG = Logger
020: .getLogger(NotAnnotatedGreeterImpl.class.getName());
021:
022: public String greetMe(String me) {
023: LOG.info("Executing operation greetMe");
024: return me;
025: }
026:
027: public String greetMeSometime(String me) {
028: LOG.info("Executing operation greetMeSometime");
029: return me;
030: }
031:
032: public Future<?> greetMeSometimeAsync(String requestType,
033: AsyncHandler<GreetMeSometimeResponse> asyncHandler) {
034: return null;
035: /* to be implemented */
036: }
037:
038: public Response<GreetMeSometimeResponse> greetMeSometimeAsync(
039: String requestType) {
040: return null;
041: /* to be implemented" */
042: }
043:
044: public Future<?> greetMeAsync(String requestType,
045: AsyncHandler<GreetMeResponse> asyncHandler) {
046: return null;
047: /*not called */
048: }
049:
050: public Response<GreetMeResponse> greetMeAsync(String requestType) {
051: return null;
052: /*not called */
053: }
054:
055: public Future<?> sayHiAsync(AsyncHandler<SayHiResponse> asyncHandler) {
056: return null;
057: /*not called */
058: }
059:
060: public Response<SayHiResponse> sayHiAsync() {
061: return null;
062: /*not called */
063: }
064:
065: public String sayHi() {
066: LOG.info("Executing operation sayHi");
067: return "Bonjour";
068: }
069:
070: public void greetMeOneWay(String me) {
071: LOG.info("Executing operation greetMeOneWay");
072: }
073:
074: public Response<TestDocLitFaultResponse> testDocLitFaultAsync(
075: String faultType) {
076: return null;
077: /*not called */
078: }
079:
080: public Future<?> testDocLitFaultAsync(String faultType,
081: AsyncHandler ah) {
082: return null;
083: /*not called */
084: }
085:
086: public Future<?> testDocLitBareAsync(String bare, AsyncHandler ah) {
087: return null;
088: /* not called */
089: }
090:
091: public Response<BareDocumentResponse> testDocLitBareAsync(
092: String bare) {
093: return null;
094: /* not called */
095: }
096:
097: public void testDocLitFault(String faultType)
098: throws BadRecordLitFault, NoSuchCodeLitFault {
099: ErrorCode ec = new ErrorCode();
100: ec.setMajor((short) 1);
101: ec.setMinor((short) 1);
102: NoSuchCodeLit nscl = new NoSuchCodeLit();
103: nscl.setCode(ec);
104:
105: throw new NoSuchCodeLitFault("TestException", nscl);
106: }
107:
108: public BareDocumentResponse testDocLitBare(String in) {
109: LOG.info("Executin operation testDocLitBare");
110: BareDocumentResponse res = new BareDocumentResponse();
111: res.setCompany("Celtix");
112: res.setId(1);
113: return res;
114: }
115: }
|