KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > wsdl > addrNoImplSEI > AddressBookNoImplSEISoapBindingImpl


1 /**
2  * AddressBookNoImplSEISOAPBindingImpl.java
3  *
4  * This file was hand modified from the Emmitter generated code.
5  */

6
7 package test.wsdl.addrNoImplSEI;
8
9 import java.util.Hashtable JavaDoc;
10 import java.util.Map JavaDoc;
11
12 // Don't implement the AddressBook interface
13
public class AddressBookNoImplSEISoapBindingImpl {
14     private Map JavaDoc addresses = new Hashtable JavaDoc();
15
16     public void addEntry(java.lang.String JavaDoc name, test.wsdl.addrNoImplSEI.Address address)
17         throws java.rmi.RemoteException JavaDoc,
18                java.lang.IllegalArgumentException JavaDoc // This should be accepted
19
{
20         if (address == null) {
21             throw new java.lang.IllegalArgumentException JavaDoc();
22         }
23         this.addresses.put(name, address);
24     }
25     public test.wsdl.addrNoImplSEI.Address getAddressFromName(java.lang.String JavaDoc name)
26         throws java.rmi.RemoteException JavaDoc,
27                javax.xml.rpc.JAXRPCException JavaDoc // This should be accepted
28
{
29         return (test.wsdl.addrNoImplSEI.Address) this.addresses.get(name);
30     }
31
32     public test.wsdl.addrNoImplSEI.Address[] getAddresses() throws java.rmi.RemoteException JavaDoc {
33         test.wsdl.addrNoImplSEI.Address[] array = new test.wsdl.addrNoImplSEI.Address[this.addresses.size()];
34         this.addresses.values().toArray(array);
35         return array;
36     }
37 }
38
Popular Tags