SSRS从SOAP消息中删除xml标头

时间:2016-08-05 14:53:28

标签: xml web-services soap reporting-services ssrs-2008-r2

我创建了一个连接到第三方Web服务的SSRS报告。我试图使用ElementPathNode将xml弄平。

我的xml就像这样

<?xml version="1.0" encoding="utf-8"?>
<soap>
<GetAllCustomersResponse>
<GetAllCustomersResult>
    <?xml version="1.0" encoding="utf-8"?>
    <Customers>
        <Customer id="1">
            <Entry>
                <FromTime>2016-07-31T04:00:00</FromTime>
                <ToTime>2016-08-01T04:00:00</ToTime>
            </Entry>
            <Entry>
                <FromTime>2016-08-01T04:00:00</FromTime>
                <ToTime>2016-08-02T04:00:00</ToTime>
            </Entry>
        </Customer>
    </Customers>
</GetAllCustomersResult>
</GetAllCustomersResponse>
</soap>

因此,这是无效的xml,因为返回数据的Web服务正在插入xml声明,然后将其包含在soap消息中。然后,我不认为我可以正确地选择数据,例如。

<ElementPath>GetAllCustomersResponse/GetAllCustomersResult/Customers/Customer/Entry{FromTime,ToTime}</ElementPath>

我有什么想法可以忽略/删除这个不需要的声明吗?

0 个答案:

没有答案
相关问题