Hi, I'll first explain the requirements.
Lets say ESB get a URL like this. http://localhost:8280/services/Myproxy/mytest?test1=1&test2=2 You can see above request is coming in to the proxy named Myproxy. There are two requirements. First requirement is URL re-writing and second one is to extract parameters from the URL. *URL-rewriting*: For example the second URL will be something like http://myservice:9000/services/mySecondService/mytest?test1=1&test2=2. You can see that this is URL rewriting. We are getting a URL to one of resources inside ESB and ESB send it to another service. The second URL is constructed by appending the things that doesn't belong to the Myproxy resource URL to the second resource. Ideal user expectation is, there is a configuration in the Endpoint saying something like url-rewrite=true. Then this will automatically happen or there is a property. Do you think this is a genuine requirement in case of ESB? Note this is specific to HTTP transport. *Parameter extraction:* The next requirement is to extract the parameters from the URL. I have started to do this by introducing a new XPath variable context. For example you can get the parameter named test1 by a XPath expression like $url:test1. But it seems there is no way to get the parameters directly from Axis2. Instead we only have access to the full URL. In that case we need to break it down manually. Do you think this is the correct approach or is there a way to get the parameters directly from a hash map? Thanks, Supun..
_______________________________________________ Carbon-dev mailing list [email protected] https://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev
