我正在使用 Azure API 管理策略,并试图找出如何从 SOAP 直通服务的输出中删除命名空间前缀。
我能找到的唯一解决方案是使用这个
<find-and-replace from="what to replace" to="replacement" />
Run Code Online (Sandbox Code Playgroud)
查找和替换是否接受正则表达式而不是静态字符串?像这样的东西吗?
<find-and-replace from="/(?!xmlns)^.*:/" to="" />
Run Code Online (Sandbox Code Playgroud)