Results 1 to 3 of 3

Thread: How to extract the Soap Header?

  1. #1
    Join Date
    Jan 2006
    Posts
    14

    Default How to extract the Soap Header?

    Hi,
    I'm trying to follow this page http://static.springsource.org/sprin...ml/server.html, which says I can define my endpoint handler method to have a signature like this:
    Code:
    public void handle(@RequestPayload MyJaxb2Object requestObject, @RequestPayload Element element, Message messageContext)
    However, it only works for me if I have
    Code:
    	@PayloadRoot(namespace = "http://<some url>", localPart = "Submit")
    	public JAXBElement<SubmitOrderResponseType> handleSubmitRequest(
    			@RequestPayload JAXBElement<SubmitOrderRequestType> requestElement)
    			throws ServiceFaultException
    Whenever I tried to add more parameters, such as this:
    Code:
    	@PayloadRoot(namespace = "http://<some url>", localPart = "Submit")
    	public JAXBElement<SubmitOrderResponseType> handleSubmitRequest(
    			@RequestPayload JAXBElement<SubmitOrderRequestType> requestElement, SoapHeader header)
    			throws ServiceFaultException
    Then things don't work for me. When a request comes in, Spring complains that:
    Code:
    java.lang.IllegalStateException: No adapter for endpoint 
    [public javax.xml.bind.JAXBElement<com.xxx.hos.schema.ogc.SubmitOrderResponseType> com.xxx.hos.ws.endpoint.SubmitEndpoint.handleSubmitRequest(javax.xml.bind.JAXBElement<com.xxx.hos.schema.ogc.SubmitOrderRequestType>,org.springframework.ws.soap.server.endpoint.annotation.SoapHeader) throws com.xxx.hos.ws.exception.ServiceFaultException]: Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?
    Any help is much appreciated!
    Thanks,
    E

  2. #2
    Join Date
    Jan 2006
    Posts
    14

    Default

    This is quite urgent for us Any help is much appreciated! I would think this is something quite common to do?

    Thanks a lot!
    E

  3. #3
    Join Date
    Jan 2006
    Posts
    14

    Default

    Thanks all! Found the solution here: http://forum.springsource.org/showth...ndpointAdapter

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •