sab
sab

Reputation: 9997

spring ws MessageEndpoint vs PayloadEndpoint

What is the difference here? Can you give an example. Thanks in advance

From the source for PayLoadEndpoint I see

Source invoke(Source request) throws Exception;

In MessageEndpoint I see

void invoke(MessageContext messageContext) throws Exception;

What is the use of both options

Upvotes: 0

Views: 1457

Answers (1)

evandongen
evandongen

Reputation: 2065

As far as I can make up from the javadoc, the PayloadEndpoint is used when you just want the message payload (the content of the incoming message) and MessageEndpoint is used when you need the complete MessageContext (including request/response, and so on).

Check out: - PayloadEndpoint - MessageEndpoint

Upvotes: 1

Related Questions