rest - WS02 HTTP header manipulation -
rest - WS02 HTTP header manipulation -
i create simple ws02 facade offers restful endpoint , forwards sec restful (ie not soap) end point. need transform endpoint address add together version portion uri obtained http header of original request.
how best this?
you can using rest api functionality of wso2 esb. can find sample exposing rest backend service on different rest api resource available @ [1].
you can utilize rest_url_postfix property add together version portion dynamically endpoint url. next sample config of setting rest_url_postfix property.
<property name="rest_url_postfix" expression="fn:concat('/version/',$trp:header_name_here)" scope="axis2"/>
[1] http://docs.wso2.org/wiki/display/esb460/using+the+rest+api#usingtherestapi-exposingaback-endrestserviceusingadifferentapi
rest header uri wso2 wso2esb
Comments
Post a Comment