1 package org.objectweb.hello_world_soap_http; 2 3 import javax.jws.WebService; 4 import javax.xml.ws.Holder; 5 import org.objectweb.hello_world_doc_lit_bare.PutLastTradedPricePortType; 6 import org.objectweb.hello_world_doc_lit_bare.types.TradePriceData; 7 8 @WebService 9 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 } 41 | Popular Tags |