WSO2 API Manager Custom Routing -


is there way dynamically set endpoints in wso2 api manager other configured production , sandbox urls? in case, want route based on incoming header value; resulting in like:

https://my_dynamically_determined_subdomain.my_static_domain.com 

i tried doing custom handler class writes desired url "to" header, doesn't seem affect routing.

is there way accomplish this?

your approach seems good. can set "to" header dynamically. have use default endpoint, instead of http endpoint. default endpoint send message url found in "to" header. please modify insequence of api configuration (found in $am_home/repository/deployment/server/synapse-configs/default/api/your-api.xml) replace http endpoint default endpoint, shown below.

api-manager-default-endpoint

if want of apis, can edit velocity_templates.xml apis published default endpoints automatically. please refer this doc more details on this. worth have @ blog post discussing similar pattern trying do.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - Chrome Extension: Interacting with iframe embedded within popup -