Xml内容在Set-Body内部不起作用(返回响应策略) [英] Xml content is not working inside Set-Body (Return-response Policy)

查看:137
本文介绍了Xml内容在Set-Body内部不起作用(返回响应策略)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在set-body策略内重新调整静态xml内容,并收到以下durin设计时间错误.您能否让我知道如何解决以下错误?

I am trying to retun static xml content inside set-body policy and received below error durin design time. Can you please let me know how to resolve below error ?

错误:

错误解析策略xml文档.意外的XML声明. XML声明必须是 文档,并且不允许在其前面出现空格字符.第31行,位置25.

Error parsing policy xml document. Unexpected XML declaration. The XML declaration must be the first node in the document, and no white space characters are allowed to appear before it. Line 31, position 25.

代码:

< 入站 >

推荐答案

XML declaration should be on line one. "<?xml version="1.0" encoding="UTF-8"?>" could be the reason for the error message.

尝试将其设置为C#变量,然后重试.


这篇关于Xml内容在Set-Body内部不起作用(返回响应策略)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆