当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: 大致过程1. 安装Jboss2. 将webservice en
 

 

    摘要: java.lang.object | +--javax.servlet.genericservlet | +--javax.servlet.http.httpservlet | +--org.apache.struts.action.actionservletstruts提供了一个缺省版本的actionservlet类,你可以继承这个类,覆盖其中的一些方法来达到你的特殊处理的需要。actio......
 ·tomcat4.1.24+mysql连接池配法    »显示摘要«
    摘要: 1.修改catalina_home\conf\server.xml <!-- tomcat root context --> <context path="" docbase="root" debug="0"> <logger classname="org.apache.catalina.logg......


JBoss 4.0 中使用web service

大致过程

详细实例: 【程序编程相关:配置struts应用[4]---stru

1. 安装jboss2. 将webservice endpoint当成servlet3. 写一个远端的interface4. 在eclipse中配置一个external tool:wscompile4. 写一个config.xml, 然后用jwsdp的jaxrpc中的wscompile生成mapping.xml与wsdl5. 必须存在4个文件:web.xml,webservices.xml,mapping.xml与.wsdl6. webservices 中的port name 要与.wsdl中的一致7. 使用lomboz或jbosside deploy 【推荐阅读:jetspeed模块定制

package service; 【扩展信息:配置struts应用[5]---stru

1. create a class

public class hello { public boolean hellodancy(string hello){  system.out.println(hello);  return true; }

}

2. create corresponding remote interface

package remote;

import java.rmi.remote;import java.rmi.remoteexception;

public interface helloremote extends remote { public boolean hellodancy(string hello) throws remoteexception;}

3. create web.xml in web-inf folder


...   下一页
    摘要: 这个demo供大家一起探讨学习struts,因为工作太累,没精力给大家解释实现原理。如果看不懂,没关系。只是说明java/jsp/base/ target=_blank>jsp基础还没有到火候,不要心急,回去强化下jsp+servlet,基础扎实了,自然能够看懂我写的代码。这个demo借鉴了网上很多前人的经验,在此一并谢谢。web.xml文件:<?xml version="1.0......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE