FileDocCategorySizeDatePackage
AddressClient.javaAPI DocApache Axis 1.4997Sat Apr 22 18:56:52 BST 2006samples.jaxrpc.address

AddressClient

public class AddressClient extends Object

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] args)

        URL urlWsdl = new URL("http://localhost:8080/axis/services/Address?wsdl");
        String nameSpaceUri = "http://address.jaxrpc.samples";
        String serviceName = "AddressServiceService";
        String portName = "Address";

        ServiceFactory serviceFactory = ServiceFactory.newInstance();
        Service service = serviceFactory.createService(urlWsdl, new
                QName(nameSpaceUri, serviceName));
        AddressService myProxy = (AddressService) service.getPort(new
                QName(nameSpaceUri, portName), AddressService.class);
        AddressBean addressBean = new AddressBean();
        addressBean.setStreet("55, rue des Lilas");
        System.out.println(myProxy.updateAddress(addressBean, 75005));