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
This method works when called from SOAPUI:
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getOrderDetail")
public @ResponsePayload JAXBElement getOrderDetail(@RequestPayload JAXBElement customerId, @RequestPayload JAXBElement promoCode)
In the method below, the values inside the customerStatusRequest are coming in null even though from SOAPUI I am populating them.
@PayloadRoot(namespace = NAMESPACE_URI, localPart = "getCustomerStatus")
public @ResponsePayload
JAXBElement getCustomerStatus(@RequestPayload JAXBElement customerStatusRequest)
(CustomerStatusRequest implements Serializable)
It appears String parameter values are making it through the call. But not a custom class. I annotated the CustomerStatusRequest class in this manner:
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CustomerStatusRequest", propOrder = {
"customerId",
"gender",
"dob",
"lastName",
"sourceSystemId"
},namespace="http://www.mycompany.com/webservices")
and also each field in the CustomerStatusRequest this way:
@XmlElement(name = "customerId", required = true, nillable = true)
The method is called but the values for customerId, etc... are still coming in as null. Are additional annotations needed for a custom class?
--Thanks