1 6 7 package test.wsdl.esr; 8 9 public class EsrTestBindingImpl implements test.wsdl.esr.EsrTest{ 10 public void esrInOut(short value, javax.xml.rpc.holders.ShortHolder echoVal, javax.xml.rpc.holders.DoubleHolder sqrtVal) throws java.rmi.RemoteException { 11 echoVal.value = (short)value; 12 sqrtVal.value = Math.sqrt(value); 13 } 14 public void esrInOut2(java.lang.String bstrSAH, java.lang.String bstrSUH, short value, javax.xml.rpc.holders.ShortHolder echoVal, javax.xml.rpc.holders.DoubleHolder sqrtVal) throws java.rmi.RemoteException 15 { 16 echoVal.value = value; 17 sqrtVal.value = Math.sqrt( (double) value ); 18 if(Double.isNaN(sqrtVal.value)) { 19 throw org.apache.axis.AxisFault.makeFault(new Exception ("arg cannot be < 0")); 20 } 21 } 22 } | Popular Tags |