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 was using WSDL file and did as below, then it worked.
@PayloadRoot(namespace = "http://www.myservice/v1.0/query", localPart = "queryRequest")
@ResponsePayload
public JAXBElement queryAddrLocation(@RequestPayload JAXBElement queryRequest) {
System.out.println("Welcome to " + queryRequest);
return createJaxbElement(new QueryResponse(), QueryResponse.class);
}
private JAXBElement createJaxbElement(T object, Class clazz) {
return new JAXBElement<>(new QName(clazz.getSimpleName()), clazz, object);
}