|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.websphere.samples.webservices.addr.AddressBookClient
public class AddressBookClient
Web Services J2EE client for AddressBook.
| Field Summary | |
|---|---|
protected static java.lang.String[] |
portVers
Port identifiers for the ports available on the AddressBookService. |
protected static boolean |
useJNDI
A flag to determine how to get the port. |
| Constructor Summary | |
|---|---|
AddressBookClient()
|
|
| Method Summary | |
|---|---|
protected static AddressBook |
getPortFromFactory(java.lang.String portVer)
Get a port or interface using a Service obtained from a ServiceFactory. |
protected static AddressBook |
getPortFromJNDI(java.lang.String portVer)
Get a port or interface using a Service obtained from a JNDI lookup. |
static void |
main(java.lang.String[] args)
|
protected static void |
printAddress(Address anAddress)
Print the contents of an Address object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final boolean useJNDI
protected static java.lang.String[] portVers
| Constructor Detail |
|---|
public AddressBookClient()
| Method Detail |
|---|
protected static void printAddress(Address anAddress)
anAddress - - the Address to print
protected static AddressBook getPortFromFactory(java.lang.String portVer)
throws javax.xml.rpc.ServiceException,
java.net.MalformedURLException
portVer - - the port identifier
javax.xml.rpc.ServiceException - if accessing the service or
port fails.
java.net.MalformedURLException - if an invalid URL is obtained.
protected static AddressBook getPortFromJNDI(java.lang.String portVer)
throws javax.xml.rpc.ServiceException,
javax.naming.NamingException,
java.lang.NoSuchMethodException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
portVer - - the port identifier
javax.xml.rpc.ServiceException - if accessing the service or
port fails.
javax.naming.NamingException - if the JNDI lookup fails.
java.lang.NoSuchMethodException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||