2012-04-10 70 views

回答

12
<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"> 
    <property name="soapVersion"> 
     <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/> 
    </property> 
</bean> 

我才發現,我需要傳遞一個消息廠

2

您只需指定肥皂版本春天的配置文件中通常spring.cfg.xml以下列方式:

<bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"> 
    <property name="soapVersion"> 
     <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/> 
    </property> 
</bean> 
相關問題