如题 ,这是测试代码 ,刚学webservice,好多不懂,请多指教 谢谢
public static void main(String[] args) {
HttpClientParams params = new HttpClientParams();
params.setParameter(HttpClientParams.CONNECTION_MANAGER_TIMEOUT, 10000);
HelloWordServiceClient client=new HelloWordServiceClient();
String url="http://localhost:8080/HelloWorld/services/HelloWordService";
HelloWordServicePortType protType=client.getHelloWordServiceHttpPort();
String s=protType.sayHello("hh","gg");
System.out.println(s); }
public static void main(String[] args) {
HttpClientParams params = new HttpClientParams();
params.setParameter(HttpClientParams.CONNECTION_MANAGER_TIMEOUT, 10000);
HelloWordServiceClient client=new HelloWordServiceClient();
String url="http://localhost:8080/HelloWorld/services/HelloWordService";
HelloWordServicePortType protType=client.getHelloWordServiceHttpPort();
String s=protType.sayHello("hh","gg");
System.out.println(s); }
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货