1 57 58 package simpletypes.wsifservice; 59 60 import java.math.BigDecimal ; 61 62 65 public class SOAPENCSimpleTypes { 66 public String getString(String s) { 67 return "getString OK"; 68 } 69 70 public Boolean getBoolean(boolean b) { 71 return new Boolean (true); 72 } 73 74 public Float getFloat(float f) { 75 return new Float (1234.0); 76 } 77 78 public Double getDouble(double d) { 79 return new Double (1234.0); 80 } 81 82 public BigDecimal getDecimal(BigDecimal bd) { 83 return new BigDecimal (1234.0); 84 } 85 86 public Integer getInteger(int i) { 87 return new Integer (1234); 88 } 89 90 public Short getShort(short s) { 91 short sh = 1234; 92 return new Short (sh); 93 } 94 95 public Byte getByte(byte b) { 96 int i = 11; 97 byte bt = (byte) i; 98 return new Byte (bt); 99 } 100 101 public byte[] getBase64(byte[] b) { 102 int i = 11; 103 byte bt = (byte) i; 104 return new byte[] {bt}; 105 } 106 } 107 108 | Popular Tags |