
最近刚学习Axis和webservice,我需要把整个一个大的项目发布到tomcat上并且在其它的机器上访问该项目中的某些方法并得到数据。而且数据源是配置在tomcat的conf中的,我该如何做才能成功实现。
你刚学Axis和webservice找我就对了,我有现成示例,Q我80345616,不常在线,想要好的webservice项目就要耐心,可以先到信卿小屋网站的“一千多部Q播大片资源”里看看实例。
第一步先下载axis.jar包,放悄此信在工程的lib目录下,在工程的web.xml文件中加入axis的servlet类,具体如上所示:
AxisServlet
org.apache.axis.transport.http.AxisServlet
AxisServlet
/servlet/AxisServlet
AxisServlet
*.jws
type="java:org.apache.axis.handlers.JWSHandler">
type="java:org.apache.axis.handlers.JWSHandler">
type="java:org.apache.axis.handlers.http.URLMapper" />
type="java:org.apache.axis.transport.local.LocalResponder"扒唤 />
type="java:org.apache.axis.handlers.SimpleAuthenticationHandler" />
<启轮requestFlow name="RequestFlow1" type="">
type="java:org.apache.axis.handlers.http.HTTPAuthHandler" />
use="encoded">
http://sztelecom.com
AxisServlet
/services/*
建议尝试用xfire吧,比axis好用!