package com.zlkj.gawfinewebservices;
import org.apache.axis2.AxisFault;
import org.apache.axis2.ServiceObjectSupplier;
import org.apache.axis2.description.AxisService;
import org.apache.axis2.description.Parameter;
import org.apache.axis2.i18n.Messages;
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
public class MainService implements ServiceObjectSupplier,ApplicationContextAware{
private static ApplicationContext ctx;
public Object getServiceObject(AxisService axisService) throws AxisFault {
Parameter springBeanName = axisService.getParameter("SpringBeanName");
String beanName = ((String) springBeanName.getValue()).trim();
if (beanName != null) {
if (ctx == null)
throw new AxisFault("applicationContext is NULL! ");
if (ctx.getBean(beanName) == null)
throw new AxisFault("Axis2 Can't find Spring Bean: " + beanName);
return ctx.getBean(beanName);
} else {
throw new AxisFault(Messages.getMessage("paramIsNotSpecified",
"SERVICE_SPRING_BEANNAME"));
}
}
public void setApplicationContext(ApplicationContext ctx)
throws BeansException {
this.ctx = ctx;
}
}
没有合适的资源?快使用搜索试试~ 我知道了~
spring3+axis2
共57个文件
jar:30个
xml:6个
java:3个
4星 · 超过85%的资源 需积分: 10 23 下载量 175 浏览量
2016-01-25
14:14:53
上传
评论
收藏 8.68MB ZIP 举报
温馨提示
企业级应用程序示例,包含所有jar包,调试完成,tomcat,wehsphere6跑都没问。
资源推荐
资源详情
资源评论
收起资源包目录
spring3+axis2.zip (57个子文件)
Cs1Web
.settings
org.eclipse.wst.jsdt.ui.superType.name 6B
org.eclipse.wst.common.project.facet.core.xml 252B
org.eclipse.wst.common.component 456B
org.eclipse.wst.jsdt.ui.superType.container 49B
.jsdtscope 500B
org.eclipse.jdt.core.prefs 395B
src
com
zlkj
gawfinewebservices
IMainServices.java 143B
MainService.java 1KB
MainServices.java 224B
.project 2KB
WebRoot
META-INF
MANIFEST.MF 36B
WEB-INF
web.xml 1KB
log4j.properties 877B
classes
com
zlkj
gawfinewebservices
IMainServices.class 234B
MainService.class 2KB
MainServices.class 804B
lib
org.springframework.asm-3.0.2.RELEASE.jar 52KB
org.springframework.context.support-3.0.2.RELEASE.jar 98KB
woden-impl-dom-1.0M9.jar 48KB
commons-codec-1.3.jar 46KB
axis2-transport-http-1.6.1.jar 149KB
org.springframework.core-3.0.2.RELEASE.jar 350KB
org.springframework.transaction-3.0.2.RELEASE.jar 226KB
neethi-3.0.1.jar 69KB
org.springframework.web.servlet-3.0.2.RELEASE.jar 394KB
org.springframework.expression-3.0.2.RELEASE.jar 153KB
stax-api-1.0-2.jar 23KB
axis2-kernel-1.6.2.jar 1021KB
org.springframework.aop-3.0.2.RELEASE.jar 313KB
axis2-spring-1.5.4.jar 16KB
jsr173_1.0_api.jar 23KB
org.springframework.jdbc-3.0.2.RELEASE.jar 369KB
woden-api-1.0M9.jar 147KB
commons-httpclient-3.1.jar 298KB
wstx-asl-3.2.0.jar 493KB
org.springframework.context-3.0.2.RELEASE.jar 642KB
xbean.jar 2.6MB
axis2-transport-local-1.6.1.jar 16KB
axiom-impl-1.2.12.jar 120KB
commons-logging-1.1.jar 52KB
XmlSchema-1.4.6.jar 146KB
axiom-api-1.2.12.jar 420KB
org.springframework.web-3.0.2.RELEASE.jar 374KB
wsdl4j.jar 117KB
axis2-adb-1.6.2.jar 673KB
org.springframework.beans-3.0.2.RELEASE.jar 537KB
services
axis
META-INF
services.xml 1KB
applicationContext.xml 372B
index.jsp 834B
.mymetadata 291B
.classpath 529B
Cs1
META-INF
application.xml 482B
MANIFEST.MF 36B
.settings
org.eclipse.wst.common.project.facet.core.xml 125B
org.eclipse.wst.common.component 230B
.project 1KB
.mymetadata 523B
lib
共 57 条
- 1
资源评论
- quinn_hn2016-08-12试了一下,用不起来。可能是环境问题吧
- phochahasau2019-05-07谢谢分享,不错的东西
- muscibean2016-03-31谢谢,学习
tt303
- 粉丝: 7
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功