I have a specific need for a SOAP endpoint. We are using spring ws 2.4.0 framework in my organization.
We really need an endpoint that itself receives a SOAP message and returns a string. The message payload is XML data. All we need to do can be done using the MessageContext object. We do not need unmarshalled XML or such.
I did some experiments, but always get the following error:
No adapter for endpoint [public java.lang.String org.company.endpoint.MyEndpoint.receiveSOAP(org.springframework.ws.context.MessageContext) throws java.lang.Exception]: Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?
I probably have a ton of unnecessary configurations messing up my w760 ws infrastructure right now. So, any ideas how I can do this with a minimal configuration:
- get SOAP with XML payload
- SOAP message caught in Endpoint method
- do my thing with messageContext parameter
- return String (XML payload will be fine too)
It is advisable to skip the XML-> POJO conversion, as the payload XML is huge
user6408185
source share