web services - How do we use uri endpoint mapping in spring integration -
i trying configure spring integration using annotation. instead of payloadqnameendpoint mapping use uri endpoint mapping. found many examples default uri endpoint required annotation example without default end point.
let's take annotationactionendpointmapping
support in spring ws! see based on division between pojo methods , annotations on them. pojo main word there. kind of framework magic allow separate low-level protocol end-application business logic. other side spring integration's abstractwebserviceinboundgateway
implements messageendpoint
meaning whole soap hard work done in implementation. isn't pojo. of course topic different story, should understand here messageendpoint
, methodendpoint
work bit different. @ least messaging logic different levels of soap request.
so, can't map <int-ws:inbound-gateway>
@action
or similar because whole soap endpoint already.
from other side, having annotationactionendpointmapping
java config, can rid of <int-ws:inbound-gateway>
, configure endpoint
delegate desired @action
methods of @messaginggateway
. , work beucase hard soap work has been done spring ws framework.
i don't know code work, can check or let me know , i'll test , come again:
@endpoint @messaginggateway public interface orderendpoint { @action("http://samples/requestorder") @gateway(requestchannel = "getorderchannel") order getorder(orderrequest orderrequest); @action("http://samples/createorder") @gateway(requestchannel = "createorderchannel") void order(order order); }
Comments
Post a Comment