1 package org.objectweb.hello_world_soap_http; 2 3 import java.util.concurrent.Future ; 4 import java.util.logging.Logger ; 5 6 import javax.xml.ws.AsyncHandler; 7 import javax.xml.ws.Response; 8 9 import org.objectweb.hello_world_soap_http.types.BareDocumentResponse; 10 import org.objectweb.hello_world_soap_http.types.ErrorCode; 11 import org.objectweb.hello_world_soap_http.types.GreetMeResponse; 12 import org.objectweb.hello_world_soap_http.types.GreetMeSometimeResponse; 13 import org.objectweb.hello_world_soap_http.types.NoSuchCodeLit; 14 import org.objectweb.hello_world_soap_http.types.SayHiResponse; 15 import org.objectweb.hello_world_soap_http.types.TestDocLitFaultResponse; 16 17 18 19 20 public class NotAnnotatedGreeterImpl implements Greeter { 21 22 private static final Logger LOG = 23 Logger.getLogger(NotAnnotatedGreeterImpl.class.getName()); 24 25 public String greetMe(String me) { 26 LOG.info("Executing operation greetMe"); 27 return me; 28 } 29 30 public String greetMeSometime(String me) { 31 LOG.info("Executing operation greetMeSometime"); 32 return me; 33 } 34 35 public Future <?> greetMeSometimeAsync(String requestType, 36 AsyncHandler<GreetMeSometimeResponse> asyncHandler) { 37 return null; 38 39 } 40 41 public Response<GreetMeSometimeResponse> greetMeSometimeAsync(String requestType) { 42 return null; 43 44 } 45 46 public Future <?> greetMeAsync(String requestType, AsyncHandler<GreetMeResponse> asyncHandler) { 47 return null; 48 49 } 50 51 public Response<GreetMeResponse> greetMeAsync(String requestType) { 52 return null; 53 54 } 55 56 public Future <?> sayHiAsync(AsyncHandler<SayHiResponse> asyncHandler) { 57 return null; 58 59 } 60 61 public Response<SayHiResponse> sayHiAsync() { 62 return null; 63 64 } 65 66 public String sayHi() { 67 LOG.info("Executing operation sayHi"); 68 return "Bonjour"; 69 } 70 71 public void greetMeOneWay(String me) { 72 LOG.info("Executing operation greetMeOneWay"); 73 } 74 75 public Response<TestDocLitFaultResponse> testDocLitFaultAsync(String faultType) { 76 return null; 77 78 } 79 80 public Future <?> testDocLitFaultAsync(String faultType, AsyncHandler ah) { 81 return null; 82 83 } 84 85 public Future <?> testDocLitBareAsync(String bare, AsyncHandler ah) { 86 return null; 87 88 } 89 90 public Response<BareDocumentResponse> testDocLitBareAsync(String bare) { 91 return null; 92 93 } 94 95 96 public void testDocLitFault(String faultType) throws BadRecordLitFault, NoSuchCodeLitFault { 97 ErrorCode ec = new ErrorCode(); 98 ec.setMajor((short)1); 99 ec.setMinor((short)1); 100 NoSuchCodeLit nscl = new NoSuchCodeLit(); 101 nscl.setCode(ec); 102 103 throw new NoSuchCodeLitFault("TestException", nscl); 104 } 105 106 public BareDocumentResponse testDocLitBare(String in) { 107 LOG.info("Executin operation testDocLitBare"); 108 BareDocumentResponse res = new BareDocumentResponse(); 109 res.setCompany("Celtix"); 110 res.setId(1); 111 return res; 112 } 113 } 114 | Popular Tags |