weberv的ice实例学习指导.docVIP

  1. 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
  2. 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  3. 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
  4. 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
  5. 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们
  6. 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
  7. 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Web Service实现包--AXIS2学习笔记一 PCPPC.CN? 教程来源:作者:? 栏目:JAVA教程? 更新时间:较新? 字体尺寸:缩小?放大   我比较懒惰,不想把user guide全部翻译,就记录一些点吧。      Axis2是全新设计的,在2004年的“Axis峰会”上,大家决定采用新的架构来让Axis更加的富有弹性,更有效率,并且更加的可配置。Axis2现在具有的一些feature:   Speed   Low memory foot print   AXIOM - AXis Object Model   Hot Deployment   Asynchronous Web Services   MEP Support - Message Exchange Patterns   Flexibility   Stability   Component-oriented deployment   Transport framework   WSDL support      有些feature现在看不懂,还是先动手做一下,感性认识一下吧      第一步:下载AXIS2。/axis2/download.cgi。很有趣,在apache的Web Service 的Project目录下面还看不到AXIS2。要下那个binary的版本,因为里面有例程。      第二步:Copy axis2.war到$TOMCAT_HOME/webapps目录下面。Tomcat好像只能用JDK1.4,我在JDK1.5 用不出来。      第三步:打开 http://localhost:8080/axis2,就可以看到axis2的Welcome页面了。点一下Validate 和Services,看是不是都没有错误。都没有错误的话,就表示deploy成功了。那个adminstration页面可以通过上传文件来hot deploy Web service,可以用来remote deploy。      第四步:研究例程。先从samples/userguide/src目录下的例程看起。看到写一个web service很简单嘛:      public class MyService {   public OMElement echo(OMElement element) throws XMLStreamException {   //Praparing the OMElement so that it can be attached to another OM Tree.   //First the OMElement should be completely build in case it is not fully built and still   //some of the xml is in the stream.   element.build();   //Secondly the OMElement should be detached from the current OMTree so that it can be attached   //some other OM Tree. Once detached the OmTree will remove its connections to this OMElement.   element.detach();   return element;   }      public void ping(OMElement element) throws XMLStreamException {   //Do some processing   }   public void pingF(OMElement element) throws AxisFault{   throw new AxisFault(Fault being thrown);   }   }      看得出来,函数统一使用OMElement作为参数。在META-INF目录下面有个services.xml文件:   service name=MyService   description   This is a sample Web Service with two operations,echo and ping.   /description   parameter name=ServiceClass locked=falseuserguide.example1.MyService/parameter   operation name=echo   messageReceiver class=org.a

文档评论(0)

phl805 + 关注
实名认证
文档贡献者

建筑从业资格证持证人

该用户很懒,什么也没介绍

领域认证该用户于2023年05月12日上传了建筑从业资格证

1亿VIP精品文档

相关文档