大致过程
详细实例: 【程序编程相关:配置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
... 下一页