我正在尝试使用 URLrewrite 调解器修改 URL,但它似乎没有效果。
我想将单词“user1”替换为“customer1”,然后将请求发送到端点
在我的代理中,我收到了这个 URL:
“/服务/myproxy/user1”
我必须将其重写为:
“/services/myproxy/customer1”(然后到端点:“ http://endpoint.com/customer1 ”)。
URLRewrite 中介是:
<rewrite xmlns="http://ws.apache.org/ns/synapse">
<rewriterule>
<action value="customer1" regex="user1" type="replace" fragment="path"/>
</rewriterule>
</rewrite>
但最后代理使用“user1”而不是“customer1”发送 URL 请求!
我的配置有什么问题??我的日志中没有看到任何错误!!
谢谢!!!