Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Spring SOAP - Could not handle mustUnderstand headers

843833Jun 23 2009 — edited Jun 24 2009
Guys,

Please check this... I'm getting Could not handle mustUnderstand headers when doing a transaction. What am I missing here? Please help. Thanks.

spring-ws-servlet.xml
<beans>
	<bean id="mm7Resp" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
	  <property name="schema" ref="schema"/>
	  <property name="portTypeName" value="MM7Resp"/>
	  <property name="locationUri" value="http://localhost:8080/mm7Incoming/"/>
	  <property name="targetNamespace" value="http://geocoderus.abc.com/schemas" />
	</bean>
	
	<bean id="schema" class="org.springframework.xml.xsd.SimpleXsdSchema">
	    <property name="xsd" value="/WEB-INF/xsd/Orders.xsd"/>
	</bean>

    <bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory">
        <property name="brokerURL" value="vm://localhost?broker.persistent=false"/>
    </bean>
    
    <bean id="messageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory">
	    <property name="messageFactory">
			<bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"></bean>
		</property>
	</bean>
    
    <bean id="MM7Endpoint" class="com.smart.mms.endpoint.MM7Endpoint">
    </bean>
    
    <bean id="endpointMapping" class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
        <property name="mappings">
            <props>
                <prop key="{http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4}DeliverReq">MM7Endpoint</prop>
            </props>
        </property>
        <property name="interceptors">
            <list>
                <ref bean="loggingInterceptor"/>
            </list>
        </property>
        
    </bean>

    <bean id="loggingInterceptor" class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
    
</beans>
SOAP Message
<?xml version="1.0" encoding="utf-8" ?>

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header>
	<mm7:TransactionID xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4" SOAP-ENV:mustUnderstand="1">90cb140a7e67fde6</mm7:TransactionID>
</SOAP-ENV:Header>

<SOAP-ENV:Body>
	<mm7:DeliverReq xmlns:mm7="http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4">
		<mm7:MM7Version>6.8.0</mm7:MM7Version>
		<mm7:MMSRelayServerID/>
		<mm7:Sender>
			<mm7:Number>123456789</mm7:Number>
		</mm7:Sender>
		<mm7:Recipients>
			<mm7:To>
				<mm7:ShortCode>TO</mm7:ShortCode>
			</mm7:To>
			</mm7:Recipients>
		<mm7:Priority>Normal</mm7:Priority>
		<mm7:Subject>Testing</mm7:Subject>
	</mm7:DeliverReq>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
Logs
06/23/09 20:50:49.896 mapping.PayloadRootQNameEndpointMapping [DEBUG] Looking up endpoint for [{http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4}DeliverReq]
06/23/09 20:50:49.896 server.SoapMessageDispatcher [DEBUG] Endpoint mapping [org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping@3ed19cdf] maps request to endpoint [com.smart.mms.endpoint.MM7Endpoint@7953113d]
06/23/09 20:50:49.896 server.SoapMessageDispatcher [DEBUG] Handling MustUnderstand header {http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4}TransactionID
06/23/09 20:50:49.897 server.SoapMessageDispatcher [WARN ] Could not handle mustUnderstand headers: {http://www.3gpp.org/ftp/Specs/archive/23_series/23.140/schema/REL-6-MM7-1-4}TransactionID. Returning fault
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2009
Added on Jun 23 2009
4 comments
2,628 views