How do I get hold of the SOAP Header
I currently have an endpoint that extends AbstractJDomPayloadEndpoint and deals with my request/response just fine.
However, I have just been asked to use a session ID, which is stored on the SOAP Header, for my logging and exception handling.
With my current configuration how to I get access to the SOAP Header???
Code:
public class AppStatusEndpoint extends AbstractJDomPayloadEndpoint
Code:
<bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootQNameEndpointMapping">
<property name="mappings">
<props>
<prop key="{/schema/appstatus/tIsApplicationEnabledV1C}IsApplicationEnabledRequest">AppStatusServiceEndpoint</prop>
</props>
</property>
<!--And a log file interceptor-->
<property name="interceptors">
<bean class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/>
</property>
</bean>
I did try and implement MessageEndpoint in my endpoint class but I wasn't quite sure how to get the request processed and the response returned once I had retrieved the session ID from the SOAP header?
Any ideas?