import org.apache.axis.client.*;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.JAXRPCException;
import javax.xml.rpc.ServiceFactory;public class TestWebService {/**
* @param args
*/
public static void main(String[] args) {
   // TODO Auto-generated method stub 
   System.out.println("Start invoking....");
   try
   {
     String endPoint="http://www.webxml.com.cn/WebServices/IpAddressSearchWebService.asmx";
     Service service = new Service();
     Call call = (Call)service.createCall();
     call.setTargetEndpointAddress(new java.net.URL(endPoint));
     call.setOperation("getVersionTime");
     call.setUseSOAPAction(true);
     call.setSOAPActionURI("");   
     call.setOperationName(new QName("www.webxml.com.cn","getVersionTime"));      
     call.setReturnType(org.apache.axis.encoding.XMLType.XSD_STRING);  
     String str=(String)call.invoke( new Object[]{}); 
     System.out.println(str);             
   }catch(Exception e)
   {
     e.printStackTrace();
   }   
}}原址是:http://blog.163.com/xlxiang7/blog/static/668608052009615315491/
这3个例子都不成功
哪里出错误了吗?
请问webservice应该学?
我自己练习了用axis,编写jws来连接,可以成功
但是不知道怎么更系统的学习