1. Open eclipse (not my eclipse) and create a new Java project;
2. After creating a Java project, create a web service client in the project;
3. Enter the WSDL address provided by the Web Service server and click Next;
4. Select generate ClientCodeStorage package;
5. Create a new test class. The class example is as follows:
Import Java. RMI. remoteException; </P> <p> public class test {</P> <p>/** <br/> * call a WebService instance using axis <br/> * @ Param ARGs <br/> */<br/> Public static void main (string [] ARGs) {</P> <p> try {<br/> // change to the corresponding proxy class <br/> queryvalidatorservicesproxy proxy = new queryvalidatorservicesproxy (); <br/> proxy. setendpoint ("WSDL address provided by Web Service"); <br/> // replace it with get the corresponding serice <br/> queryvalidatorservices service = proxy. getqueryvalidatorservices (); <br/> // call the method provided by Web Service <br/> string result = service. querysingle ("id5", "******", "XXXX", "XX, xxxxxx"); </P> <p> system. out. println (result); </P> <p >}catch (RemoteException e) {<br/> E. printstacktrace (); <br/>}</P> <p >}< br/>