No adapter for endpoint; Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?

前端 未结 8 1078
遥遥无期
遥遥无期 2021-02-05 07:45

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

8条回答
  •  渐次进展
    2021-02-05 07:57

    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

提交回复
热议问题