Announcement Announcement Module
Collapse
No announcement yet.
Handling SOAP Faults from the client Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Handling SOAP Faults from the client

    I am getting a SOAP Fault back from the webservice that I am calling, but instead of seeing a SoapFaultClientException I am getting a UnMarshallingException. Why would this be the case?

    Here is my setup:

    Code:
        <bean id="webServiceGatewaySupport" class="org.springframework.ws.client.core.support.WebServiceGatewaySupport" abstract="true">  
            <constructor-arg ref="messageFactory" />
               <property name="marshaller" ref="jaxb2Marshaller" />
               <property name="unmarshaller" ref="jaxb2Unmarshaller" />
               <property name="interceptors">
                <list>
                    <ref local="wssInterceptor" />
                    <ref local="validatingInterceptor" />
                </list>
            </property>
        </bean>
    
        <bean id="validatingMTransitInterceptor" class="org.springframework.ws.client.support.interceptor.PayloadValidatingInterceptor">
    		<description>
    			This interceptor validates both incoming and outgoing message contents
    			according to the XML Schema file.
    		</description>
    		<property name="schemas">
    			<list>
    				<value>classpath:xsd/whatever.xsd</value>
    			</list>
    		</property> 
    		<property name="validateRequest" value="true" />
    		<property name="validateResponse" value="true" />
    	</bean>
    My expectation would be that since the WebServiceTemplate has the faultMessageResolver of SoapFaultMessageResolver I would get the SoapFaultClientException but that isn't the case.

    Any thoughts?

    Thanks,
    Bill
Working...
X