python2.6 升级到2.7
2015-04-14 10:12
393 查看
spring和xfire结合?client.xml
<?xml version="1.0" encoding="utf-8"?>
<beans>
<bean id="M30" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="true">
<property name="serviceClass">
<value>cn.net.withub.xfgl.sdyb.webService.service.XfSdybService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://149.0.12.206:8181/xfgl/xfireServices/xfgl?wsdl</value>
</property>
</bean>
<bean id="M00" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="true">
<property name="serviceClass">
<value>cn.net.withub.xfgl.sdyb.webService.service.XfSdybService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://149.0.12.2:8181/xfgl/xfireServices/xfgl?wsdl</value>
</property>
</bean>
</beans>
如果我 M00 的wsdlDocumentUrl 对应的 vaule 如:http:149.0.0.1:22/xfgl...这样的地址。也就是不存在 或者网络不通的情况下?我用
ApplicationContext act=new ClassPathXmlApplicationContext("client.xml");这样加载的时候 他会去验证 我的哪个 wsdlDocumentUrl 是否存在。不存在会抛org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'M00' defined in class path resource [client.xml]: Initialization of bean
failed; nested exception is java.net.ConnectException: Connection timed out: co
nnect
java.net.ConnectException: Connection timed out: connect 这个异常。 如何能够让spring 不去验证哪个wsdl是否存在。或者网络不通的那些wsdl。如果只要出现一个网络不通的情况下 。我的所有的Webservice都不能用了 。这个可怎么办啊 ?今天突然发现这个问题、不知道从怎么着手了 、我希望的是存在的就继续操作。不存在的就不要去管他。我在程序里面在控制。或者设置一个延时?该怎么解决这个问题呢?
<?xml version="1.0" encoding="utf-8"?>
<beans>
<bean id="M30" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="true">
<property name="serviceClass">
<value>cn.net.withub.xfgl.sdyb.webService.service.XfSdybService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://149.0.12.206:8181/xfgl/xfireServices/xfgl?wsdl</value>
</property>
</bean>
<bean id="M00" class="org.codehaus.xfire.spring.remoting.XFireClientFactoryBean" lazy-init="true">
<property name="serviceClass">
<value>cn.net.withub.xfgl.sdyb.webService.service.XfSdybService</value>
</property>
<property name="wsdlDocumentUrl">
<value>http://149.0.12.2:8181/xfgl/xfireServices/xfgl?wsdl</value>
</property>
</bean>
</beans>
如果我 M00 的wsdlDocumentUrl 对应的 vaule 如:http:149.0.0.1:22/xfgl...这样的地址。也就是不存在 或者网络不通的情况下?我用
ApplicationContext act=new ClassPathXmlApplicationContext("client.xml");这样加载的时候 他会去验证 我的哪个 wsdlDocumentUrl 是否存在。不存在会抛org.springframework.beans.factory.BeanCreationException: Error creating bean wit
h name 'M00' defined in class path resource [client.xml]: Initialization of bean
failed; nested exception is java.net.ConnectException: Connection timed out: co
nnect
java.net.ConnectException: Connection timed out: connect 这个异常。 如何能够让spring 不去验证哪个wsdl是否存在。或者网络不通的那些wsdl。如果只要出现一个网络不通的情况下 。我的所有的Webservice都不能用了 。这个可怎么办啊 ?今天突然发现这个问题、不知道从怎么着手了 、我希望的是存在的就继续操作。不存在的就不要去管他。我在程序里面在控制。或者设置一个延时?该怎么解决这个问题呢?
相关文章推荐
- centos6默认python2.6升级2.7 卸载python2.6升级2.7
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- python自动化运维之python2.6升级2.7和集中病毒扫描
- centos python2.6 升级到python2.7
- centos6默认python2.6升级2.7 卸载python2.6升级2.7
- python2.6升级2.7的方法及升级后的故障处理
- Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7
- CentOS6.5升级Python2.6到Python2.7并安装pip
- python2.6升级2.7
- CentOS yum 升级Python2.6 到 2.7
- centos系统python版本2.6升级到2.7
- centos 6 升级python2.6 到2.7,安装pip过程
- Centos 6.4 python 2.6 升级到 2.7
- python2.6版本升级2.7
- Centos6.8 python2.6升级至2.7,并安装setuptools和pip
- Centos 6.4 python 2.6 升级到 2.7
- [转] Centos 6.4 python 2.6 升级到 2.7
- Centos 6.4 python 2.6 升级到 2.7