I have a service that has a REST and SOAP interface hosted on different url paths but on the same port. The best solution I could come up with was using a mpg with dynamic backend. I then created policies that start by matching the url path. They then use a route object with XSLT to set the routing-url variable to a wsp or waf bound to another port.
I used this as a starting point:
Here is one of the style sheets:
<xsl:variable name="backEndUrl" select="http://10.10.10.10:8888/path/to/app.php" />
<dp:set-variable name="'var://service/routing-url'" value="$backEndUrl" />
When I run documents and connections through I don't see the XSLT get executed. I see the url match at the beginning of the policy rule, but then quickly sends to the error rule. I even put some debug output in the XSLT to log, and I don't see any of the output.
Here is what I see in the logs:
Dynamic backend host not specified
No backside route was selected
Am I missing anything here? I can't find any other way to get further debug information in the policy/mpg. What am I missing?
This topic has been locked.
1 reply Latest Post - 2013-01-31T08:14:19Z by HermannSW
Pinned topic XSLT not executing in route object in mpg with dynamic backend
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2013-01-31T08:14:19Z at 2013-01-31T08:14:19Z by HermannSW
HermannSW 2700006U542731 PostsACCEPTED ANSWER
Re: XSLT not executing in route object in mpg with dynamic backend2013-01-31T08:14:19Z in response to SystemAdminYou are missing single quotes inside double quotes (you did not miss that for dp:set-variable/@name ), this will define the string correctly:
select=" 'http://10.10.10.10:8888/path/to/app.php' "
You should have seen an error "... Unbound prefix: http" in the logs.