1 57 58 package clients.zipcode; 59 60 64 public class ZIPCodeProxyClient { 65 66 public static void main(String [] args) { 67 68 if (args.length!=1) 69 { 70 System.out.println("Usage: ZipCodeProxyClient wsdl"); 71 return; 72 } 73 74 ShortZipCode address = new ShortZipCode(); 75 address.setAccessCode("9999"); 76 address.setAddress("607 Trinity"); 77 address.setCity("Austin"); 78 address.setState("TX"); 79 80 ZIPCodeProxy proxy = new ZIPCodeProxy(args[0]); 81 ShortZipCodeResponse response = 82 proxy.getShortZipCodeResponse(address,"ZipCodeResolverSoap"); 83 84 System.out.println(response.getShortZipCodeResult()); 85 } 86 } 87 | Popular Tags |