01: package org.objectweb.hello_world_soap_http;
02:
03: import javax.jws.WebService;
04: import javax.xml.ws.Holder;
05: import org.objectweb.hello_world_doc_lit_bare.PutLastTradedPricePortType;
06: import org.objectweb.hello_world_doc_lit_bare.types.TradePriceData;
07:
08: @WebService
09: public class DocLitBareImpl implements PutLastTradedPricePortType {
10: int sayHiCount;
11: int putLastTradedPriceCount;
12: int bareNoParamCallCount;
13:
14: public void sayHi(Holder<TradePriceData> inout) {
15: ++sayHiCount;
16: inout.value.setTickerPrice(4.5f);
17: inout.value.setTickerSymbol("OBJECTWEB");
18: }
19:
20: public void putLastTradedPrice(TradePriceData body) {
21: ++putLastTradedPriceCount;
22: }
23:
24: public int getSayHiInvocationCount() {
25: return sayHiCount;
26: }
27:
28: public int getPutLastTradedPriceCount() {
29: return putLastTradedPriceCount;
30: }
31:
32: public String bareNoParam() {
33: bareNoParamCallCount++;
34: return "testSuccess";
35: }
36:
37: public int getBareNoParamCount() {
38: return bareNoParamCallCount;
39: }
40: }
|