KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > oneway > OnewayImpl


1 /**
2  * AddressBookSOAPBindingImpl.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */

7
8 package test.wsdl.oneway;
9
10 import java.rmi.RemoteException JavaDoc;
11 import java.util.Hashtable JavaDoc;
12
13 public class OnewayImpl implements Oneway {
14     private Hashtable JavaDoc ht = new Hashtable JavaDoc();
15
16     public void addEntry(String JavaDoc name, Address address) throws RemoteException JavaDoc {
17         ht.put(name, address);
18     }
19
20     public Address getAddressFromName(String JavaDoc name) throws RemoteException JavaDoc {
21         return (Address) ht.get(name);
22     }
23
24     public void throwException() throws RemoteException JavaDoc {
25         throw new RemoteException JavaDoc("OnewayImpl throws RemoteException");
26     }
27
28 }
29
Popular Tags