I am struggling with an Spring-WS with JMS example. I set the Spring-WS and JMS wiring as per the Spring recommendations. But I kept getting following error. I dont know how to
I'm not sure how your complete Endpoint looks, but the class should be annotated with @Endpoint
or it should implement MessageHandler
or PayloadEndpoint
.
On other thing you can play with is the method signature. Spring-WS' endpoint mapping is pretty intelligent: it tries to map input and output classes from your method signature with the WSDL file. Are you sure a String is the @ResponsePayLoad, not a StoreImageResponse
?
For example, here's the method signature of one of my endpoint
@PayloadRoot(
localPart = "GetHiredCandidatesRequest",
namespace = DEFAULT_NAMESPACE
)
@ResponsePayload
public GetHiredCandidatesResponse getCandidates (
@RequestPayload GetHiredCandidatesRequest getCandidate,
MessageContext messageContext) {
...
}
Which is defined in my WSDL like this:
Do you see how it's mapped? Perhaps you're missing something like that in your signature.