private static String URL = "http://127.0.0.1:8080/axis2/services/AddressBookService";
public static void main(String[] args) {
try {
AddressBookServiceAddressBookServiceSOAP11Port_httpStub stub;
if (args != null && args.length != 0) {
stub = new AddressBookServiceAddressBookServiceSOAP11Port_httpStub(args[0]);
} else {
stub = new AddressBookServiceAddressBookServiceSOAP11Port_httpStub(URL);
}
AddEntry addEntry = new AddEntry();
Entry entry = new Entry();
entry.setName("Abby Cadabby");
entry.setStreet("Sesame Street");
entry.setCity("Sesame City");
entry.setState("Sesame State");
entry.setPostalCode("11111");
addEntry.setParam0(entry);
stub.addEntry(addEntry);
FindEntry findEntry = new FindEntry();
findEntry.setParam0("Abby Cadabby");
FindEntryResponse response = stub.findEntry(findEntry);
Entry responseEntry = response.get_return();
System.out.println("Name :" + responseEntry.getName());
System.out.println("Street :" + responseEntry.getStreet());
System.out.println("City :" + responseEntry.getCity());