【发布时间】:2017-02-09 09:34:05
【问题描述】:
我有两个端点用于不同的客户端。
我用过
<bean id="messageFactory2" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
<description>A message factory to support SOAP 1.2</description>
<property name="soapVersion">
<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/>
</property>
</bean>
支持 Soap 1.2 调用,但现在用于 Soap 1.1 的调用不再工作:
Blockquote com.sun.xml.messaging.saaj.soap.SOAPVersionMismatchException:无法创建消息:SOAP 版本的内容类型不正确。得到:文本/xml; charset=UTF-8 预期:应用程序/soap+xml
我该如何管理它们? 谢谢你的回答。
【问题讨论】:
标签: xml spring web-services soap wsdl