资源简介

Spring+CXF+tomcat开发webservice,包含服务端和客户端,导入myeclipse就可以用。帮助大家搭建webservice框架,实现webservice功能。

资源截图

代码片段和文件信息

package main;

import org.springframework.context.support.ClassPathxmlApplicationContext;


import po.UserPo;

import server.UserServer;

public class TestMain {

/**
 * @param args
 */
public static void main(String[] args) {
 ClassPathxmlApplicationContext context = new ClassPathxmlApplicationContext(
“beans.xml“);
 UserServer server = (UserServer) context.getBean(“userService“);
 UserPo po = new UserPo();
 po.setId(“22“);
 po.setUsername(“hello2“);
 po.setPassword(“kittey2“);
 server.addUser(po);
//  UserPo po = server.getById(“22“);
//  System.out.println(po.getId()+“-“+po.getUsername()+“-“+po.getPassword());
}

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-11-27 08:52  testwebserviceclient\
     文件        6673  2013-11-26 20:50  testwebserviceclient\.classpath
     目录           0  2013-11-27 08:52  testwebserviceclient\.myeclipse\
     文件         333  2013-11-27 08:52  testwebserviceclient\.mymetadata
     文件        1547  2013-11-26 20:13  testwebserviceclient\.project
     目录           0  2013-11-27 08:52  testwebserviceclient\.settings\
     文件         500  2013-11-26 20:13  testwebserviceclient\.settings\.jsdtscope
     文件         395  2013-11-26 20:13  testwebserviceclient\.settings\org.eclipse.jdt.core.prefs
     文件         498  2013-11-26 20:13  testwebserviceclient\.settings\org.eclipse.wst.common.component
     文件         252  2013-11-26 20:13  testwebserviceclient\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2013-11-26 20:13  testwebserviceclient\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2013-11-26 20:13  testwebserviceclient\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2013-11-27 08:52  testwebserviceclient\src\
     文件         988  2013-11-26 21:29  testwebserviceclient\src\beans.xml
     目录           0  2013-11-27 08:52  testwebserviceclient\src\main\
     文件         680  2013-11-27 14:53  testwebserviceclient\src\main\TestMain.java
     目录           0  2013-11-27 08:52  testwebserviceclient\src\po\
     文件         591  2013-11-26 20:18  testwebserviceclient\src\po\UserPo.java
     目录           0  2013-11-27 08:52  testwebserviceclient\src\server\
     文件         144  2013-11-26 22:20  testwebserviceclient\src\server\UserServer.java
     文件         498  2013-11-26 22:20  testwebserviceclient\src\server\UserServerImpl.java
     目录           0  2013-11-27 08:52  testwebserviceclient\src\service\
     文件         191  2013-11-26 22:14  testwebserviceclient\src\service\Userservice.java
     目录           0  2013-11-27 08:52  testwebserviceclient\WebRoot\
     文件         834  2013-11-26 20:13  testwebserviceclient\WebRoot\index.jsp
     目录           0  2013-11-27 08:52  testwebserviceclient\WebRoot\meta-INF\
     文件          36  2013-11-26 20:13  testwebserviceclient\WebRoot\meta-INF\MANIFEST.MF
     目录           0  2013-11-27 08:52  testwebserviceclient\WebRoot\WEB-INF\
     目录           0  2013-12-09 08:57  testwebserviceclient\WebRoot\WEB-INF\classes\
     文件         988  2013-11-26 21:29  testwebserviceclient\WebRoot\WEB-INF\classes\beans.xml
     目录           0  2013-12-09 08:57  testwebserviceclient\WebRoot\WEB-INF\classes\main\
............此处省略200个文件信息

评论

共有 条评论