Java开发网 Java开发网
注册 | 登录 | 帮助 | 搜索 | 排行榜 | 发帖统计  

您没有登录

» Java开发网 » Servlet/JSP/JSF/JavaFX Script  

按打印兼容模式打印这个话题 打印话题    把这个话题寄给朋友 寄给朋友    该主题的所有更新都将Email到你的邮箱 订阅主题
reply to topicflat modethreaded modego to previous topicgo to next topicgo to back
作者 问一个org包下的东东
beingo





发贴: 83
于 2005-09-21 17:22 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
org,apache.axis.client.Call
org,apache.axis.client.Services
这二个有什么用啊



作者 Re:问一个org包下的东东 [Re:beingo]
zcjl

涅槃



发贴: 537
于 2005-09-21 20:28 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
主要是用于webservice客户端调用的类


作者 Re:问一个org包下的东东 [Re:beingo]
beingo





发贴: 83
于 2005-09-22 08:27 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
能说详细点吗,最好给个资料

API全是英文不是很懂



作者 Re:问一个org包下的东东 [Re:beingo]
zcjl

涅槃



发贴: 537
于 2005-09-22 11:47 user profilesend a private message to userreply to postsearch all posts byselect and copy to clipboard. 
ie only, sorry for netscape users:-)add this post to my favorite list
import javax.xml.namespace.QName;
import javax.xml.rpc.ParameterMode;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;

public class TestEcho {
public static void main(String[] args) throws Exception {
String endpoint = "http://localhost:8080/webservice/HelloService";
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(new java.net.URL(endpoint));
call.setOperationName(new QName("urn:HelloService", "echo"));
call.addParameter(new QName("", "String_1"), new QName("http://www.w3.org/2001/XMLSchema",
"string"), ParameterMode.IN);
call.setReturnType(org.apache.axis.Constants.XSD_STRING);
Object ret = call.invoke(new Object[] {"test"});
System.out.println(ret);
}
}


zcjl edited on 2005-09-22 11:49


reply to topicflat modethreaded modego to previous topicgo to next topicgo to back
  已读帖子
  新的帖子
  被删除的帖子
Jump to the top of page

   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923