KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > esr > EsrTestBindingImpl


1 /**
2  * EsrTestBindingImpl.java
3  *
4  * Test for bug 12636
5  */

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 JavaDoc echoVal, javax.xml.rpc.holders.DoubleHolder JavaDoc sqrtVal) throws java.rmi.RemoteException JavaDoc {
11         echoVal.value = (short)value;
12         sqrtVal.value = Math.sqrt(value);
13     }
14     public void esrInOut2(java.lang.String JavaDoc bstrSAH, java.lang.String JavaDoc bstrSUH, short value, javax.xml.rpc.holders.ShortHolder JavaDoc echoVal, javax.xml.rpc.holders.DoubleHolder JavaDoc sqrtVal) throws java.rmi.RemoteException JavaDoc
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 JavaDoc("arg cannot be < 0"));
20         }
21     }
22 }
Popular Tags