使用 xfire 配置 Webservice 客户端,会由于访问端无法访问,而造成 Spring 项目启动失败。需要在 Spring 配置中,设置该客户端为启动时不加载。
设置改类属性 lookupServiceOnStartup 为 false
<bean id="类编号" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean"> <property name="serviceClass" value="类接口"/> <property name="wsdlDocumentUrl" value="http://xxx/xxx?wsdl"/> <property name="lookupServiceOnStartup"> <!-- 设置启动不加载 --> <value>false</value> </property> </bean>
注:
一般此处配置 Spring 的 lazy-init="true" 不管用是,可以采用上面的方法。
相关推荐
xfire+spring+安全认证,包含服务端和客户端,xfire jar包可以从我的资源下面下或网上很多。
xfire+spring+webservice+client xfire+spring+webservice+client xfire+spring+webservice+client
xfire+spring开发webservice 很不错的文档
xfire+spring+webservice xfire+spring+webservice xfire+spring+webservice xfire+spring+webservice
使用XFire+Spring构建Web Service使用XFire+Spring构建Web Service使用XFire+Spring构建Web Service使用XFire+Spring构建Web Service使用XFire+Spring构建Web Service使用XFire+Spring构建Web Service
webservice教程(xfire+spring)webservice教程(xfire+spring)webservice教程(xfire+spring)webservice教程(xfire+spring)
XFire采用Woodstox 作Stax实现; 3 容易上手,可以方便快速地从pojo发布服务; 4 支持Spring、Pico、Plexus、Loom等容器; 5 灵活的Binding机制,包括默认的Aegis,xmlbeans,jaxb2,castor; 6 高性能的SOAP 栈...
xfire+spring webservice
xfire+Spring整合发布webservice,详细解释配置过程,及是替代码,帮助一部分需要这方面开发的人员。
使用XFire+Spring使用XFire+Spring构建Web Service(二).doc构建使用XFire+Spring构建Web Service(二).docWeb Service(二).doc
使用XFire+Spring构建Web Service步骤以及源代码.rar
本来想把xfire+spring例子也一起传上来,太大不让传,晕...
使用XFire+Spring构建Web Service步骤 java
xFire+spring webService示例 用过的
使用XFire+Spring构建Web Service.doc 该文章讲解了整个的配置流程,按照该流程可以完成框架搭建。该文章是转载其他人的,因为没有积分,所以不得以而为之。惭愧。
eclipse下spring+xfire实现ws-security的简单例子,包含服务器和客户端的代码,实现用户名/密码.数字签名和报文加密的安全认证,唯一不足的是没有实现数字签名和报文加密的混合模式(可能是密匙文件的问题,正在努力中),...
关于ssh demo 演示验证码及图片流显示在界面中,XFire+Spring构建WebService整合