Package sample.addressbook.stub

Examples of sample.addressbook.stub.AddressBookServiceAddressBookServiceSOAP11Port_httpStub


    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());
View Full Code Here

TOP

Related Classes of sample.addressbook.stub.AddressBookServiceAddressBookServiceSOAP11Port_httpStub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.