![](/img/trans.png)
[英]Support both SOAP 1.1 and SOAP 1.2 messages in Spring-WS
[英]Updating server Side SOAP version from 1.1 to 1.2 in a spring application
我在基于springMVC的应用程序中使用基于jax-ws(cxf)的SOAP1.1 api。 我已经在我的应用程序applicationContext.xml中导入了以下cxf文件
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
并通过将其添加到我的项目applicationContext.xml中来公开我的服务
<jaxws:endpoint id="proxyService" implementor="#proxy" address="/proxyService" />
<bean id="proxy" class="com.aqif.service.ProxyServiceImpl" />
<bean id="ClassModelDAO" class="com.aqif.dao.ClassModelDAOImpl"/>
请让我知道,从SOAP1.1升级到SOAP1.2时需要进行哪些更改
我正在使用Spring 3.0.5
在您的CLassModelDAO中,添加:
<property name="createSoap12Binding" value="true" />
这将使其看起来像:
<bean id="ClassModelDAO" class="com.aqif.dao.ClassModelDAOImpl">
<property name="createSoap12Binding" value="true" />
</bean>
您甚至可以通过以下方式完全禁用1.1
<property name="createSoap11Binding" value="false" />
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.