| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 915 人关注过本帖
标题:跪求 用java开发webservice的资料
只看楼主 加入收藏
tommi85
Rank: 1
等 级:新手上路
帖 子:1
专家分:0
注 册:2007-12-12
收藏
 问题点数:0 回复次数:2 
跪求 用java开发webservice的资料
跪求 用java开发webservice的资料
搜索更多相关主题的帖子: java webservice 资料 开发 
2007-12-12 23:47
marer
Rank: 2
等 级:新手上路
威 望:3
帖 子:928
专家分:0
注 册:2005-7-18
收藏
得分:0 
import org.apache.axis.client.Service;
import org.apache.axis.client.Call;
import javax.xml.namespace.QName;
public class TestNetService {
public TestNetService() {
}
public static void main(String[] args) {
try {
Integer i = new Integer(1);
Integer j = new Integer(2);
String endpoint="http://localhost/HelloService/Service1.asmx";
Service service = new Service();
Call call = (Call)service.createCall();
call.setTargetEndpointAddress(new (endpoint));
call.setOperationName(new QName("http://,"AddInt"));
call.addParameter("a",org.apache.axis.encoding.XMLType.XSD_DATE,javax.xml.rpc.ParameterMode.IN);
call.addParameter("b",org.apache.axis.encoding.XMLType.XSD_DATE,javax.xml.rpc.ParameterMode.IN);
call.setReturnType(org.apache.axis.encoding.XMLType.XSD_INT);
call.setUseSOAPAction(true);
call.setSOAPActionURI("http://);
Integer k = (Integer)call.invoke(new Object[]{i,j});
System.out.println( "result is " + k.toString() + ".");
}
catch (Exception e) {System.err.println(e.toString());}
}

}
只能给你提供这么多了,详细的资料还需要自己多费心去找

public class 人生历程 extends Thread{public void run(){while(true){努力,努力,再努力!!;Thread.sleep(0);}}}
2007-12-15 13:19
黄袖标
Rank: 4
等 级:贵宾
威 望:13
帖 子:676
专家分:0
注 册:2007-3-22
收藏
得分:0 
我的帖子好像有的。 不过改版后名字介绍都没了。
有空我再发个帖子吧。
你去找找看好了。

我胡汉三又回来啦!物是人非啊,只有静夜思大大还在。
2007-12-17 12:00
快速回复:跪求 用java开发webservice的资料
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.017428 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved