java中有Client这个类吗?
public static void main(String[] args) {
try {
Client client = new Client(new URL("http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl"));
Object[] results = client.invoke("qqCheckOnline", new String[]{"35934591"});
System.out.println(results[0]);} catch (MalformedURLException e) {
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}

解决方案 »

  1.   

    jdk截止到1.5版没有你说的那个类,ClientRequestInfo类倒有。
      

  2.   

    在java里的API查了下,没有搜到这个类,楼上说的是正解,建议多看看API文档,这是基本功,打好基本功对你很有帮助的
      

  3.   

    public interface ClientRequestInfo extends ClientRequestInfoOperations, RequestInfo, IDLEntity
    jdk6
      

  4.   

    client可以自己定义的.
     
    public static void main(String args[]) {  
       
      Service srvcModel = new ObjectServiceFactory().create(IDataExchangeService.class);  
      XFireProxyFactory factory = new XFireProxyFactory(XFireFactory.newInstance().getXFire())
      String helloWorldURL = "http://192.168.0.82:8001/HGFY_DataExchane/services/DataExchangeService";
       
         try {  
        
         Client client = Client.getInstance(factory.create(srvcModel, helloWorldURL));
     其中Client   是xfire包里的类
    public class org.codehaus.xfire.client.Client extends org.codehaus.xfire.handler.AbstractHandlerSupport implements org.codehaus.xfire.transport.ChannelEndpoint {
      

  5.   

    这是j2ee的webservice使用WSDL的客户端client类
      

  6.   

       貌似在API上没看到!...
      

  7.   

    楼主没有用XFire开发过Web Service吧
    以上过程是客户端通过WSDL动态调用Web Service过程,Client是XFire开发包中自定义的类。