Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Azure API管理SOAP到REST策略编辑器问题_Azure_Azure Api Management - Fatal编程技术网

Azure API管理SOAP到REST策略编辑器问题

Azure API管理SOAP到REST策略编辑器问题,azure,azure-api-management,Azure,Azure Api Management,我对Azure API管理策略有一个有趣的问题。我需要从前端迭代一个JSON数组。我正在创建一个XML输入数据包,以基于我的输入JSON发送到我的后端服务 我面临的问题是,策略编辑器在保存策略时似乎正在损坏策略。在{for}循环内编写的任何代码都将被删除并放置在循环外,在for循环代码中留下空白。我在我的set body标签中使用液体模板 这就是我想要拯救的 {% for item in body.code.mycodes %}

我对Azure API管理策略有一个有趣的问题。我需要从前端迭代一个JSON数组。我正在创建一个XML输入数据包,以基于我的输入JSON发送到我的后端服务

我面临的问题是,策略编辑器在保存策略时似乎正在损坏策略。在{for}循环内编写的任何代码都将被删除并放置在循环外,在for循环代码中留下空白。我在我的set body标签中使用液体模板

这就是我想要拯救的

                            {% for item in body.code.mycodes %}
                            <Lookup>
                                <Identifier>{{item.identifier}}</Identifier>
                            </Lookup>
                            {% endfor %}                                
{%用于body.code.mycodes%中的项]
{{item.identifier}}
{%endfor%}
但在我保存我的策略并重新打开它之后,它就这样做了

                            <Lookup>
                                <Identifier>{{item.identifier}}</Identifier>
                            </Lookup>
                            {% for item in body.code.mycodes %}

                            {% endfor %} 

{{item.identifier}}
{body.code.mycodes%中的项的%s}
{%endfor%}

我不知道这是一个bug还是我做的事情完全不正确。

感谢您的报告。我们正在努力解决这个问题。目前,旧的publisher门户是解决方案