| 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; |
| 11 |
import java.util.Hashtable; |
| 12 |
|
| 13 |
public class OnewayImpl implements Oneway { |
| 14 |
private Hashtable ht = new Hashtable(); |
| 15 |
|
| 16 |
public void addEntry(String name, Address address) throws RemoteException { |
| 17 |
ht.put(name, address); |
| 18 |
} |
| 19 |
|
| 20 |
public Address getAddressFromName(String name) throws RemoteException { |
| 21 |
return (Address) ht.get(name); |
| 22 |
} |
| 23 |
|
| 24 |
public void throwException() throws RemoteException { |
| 25 |
throw new RemoteException("OnewayImpl throws RemoteException"); |
| 26 |
} |
| 27 |
|
| 28 |
} |