KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > soapclient > SOAPTest


1 package soapclient;
2
3 import electric.registry.Registry;
4 import transactions.ICustomerInfo;
5 import dinamica.Recordset;
6
7 /**
8  * SOAP Client that invokes webservice that returns
9  * a recordset
10  * <br><br>
11  * Creation date: 13/05/2005
12  * (c) 2005 Martin Cordova<br>
13  * This code is released under the LGPL license<br>
14  * Dinamica Framework - http://www.martincordova.com<br>
15  * @author Martin Cordova (dinamica@martincordova.com)
16  */

17 public class SOAPTest
18 {
19
20     public static void main(String JavaDoc[] args) throws Throwable JavaDoc
21     {
22         String JavaDoc url = "http://localhost/soap/services/customer.wsdl";
23         ICustomerInfo cust = (ICustomerInfo)Registry.bind( url, ICustomerInfo.class );
24         Recordset rs = cust.getCustomer("BERGS");
25         System.out.println(rs);
26     }
27     
28 }
29
Popular Tags