Hello,
I have a problem when using payloadcaching=false with axiom and a simple
ws-security config:
<bean id="securityRequestInterceptor"
class="org.springframework.ws.soap.security.wss4j. Wss4jSecurityInterceptor">
<property name="validationActions" value="UsernameToken"/>
<property name="validationCallbackHandler" ref="requestCallbackHandler"/>
</bean>
<bean name="requestCallbackHandler"
class="org.springframework.ws.soap.security.wss4j. callback.SimplePasswordValidationCallbackHandler">
<property name="users">
<props>
<prop key="titi">toto</prop>
</props>
</property>
</bean>
<bean class="org.springframework.ws.server.endpoint.mapp ing.PayloadRootAnnotationMethodEndpointMapping">
<description>
</description>
<property name="interceptors">
<list>
<ref bean="securityRequestInterceptor" />
</list>
</property>
<property name="order" value="1" />
</bean>
<bean id="messageFactory" class="org.springframework.ws.soap.axiom.AxiomSoap MessageFactory">
<property name="payloadCaching" value="false" />
<property name="soapVersion">
<util:constant static-field="org.springframework.ws.soap.SoapVersion.SOA P_11" />
</property>
</bean>
The response i obtain is the following
...
<faultstring xmlns="..." xml:lang="en">Error in converting SOAP Envelope to Document</faultstring>...
if i enable payloadcaching it works fine
I'am using spring ws v1.5.0
Thanks in advance


Reply With Quote