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:
However, it only works for me if I haveCode:public void handle(@RequestPayload MyJaxb2Object requestObject, @RequestPayload Element element, Message messageContext)
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) throws ServiceFaultException
Then things don't work for me. When a request comes in, Spring complains that:Code:@PayloadRoot(namespace = "http://<some url>", localPart = "Submit") public JAXBElement<SubmitOrderResponseType> handleSubmitRequest( @RequestPayload JAXBElement<SubmitOrderRequestType> requestElement, SoapHeader header) throws ServiceFaultException
Any help is much appreciated!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?
Thanks,
E


Reply With Quote
Any help is much appreciated! I would think this is something quite common to do?