-1

有没有人提供用于提取从 Web 服务返回的数据的查询语言的来源。

我写了一个网络服务返回一个数据集,

[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
[ToolboxItem(false)]
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
// [System.Web.Script.Services.ScriptService]
public class Service1 : System.Web.Services.WebService
{

    [WebMethod]
    public DataSet GetData()
    {
        AWDS ds = new AWDS();//AWDS is my dataset class name
        SalesPersonTableAdapter ta = new SalesPersonTableAdapter();
        ta.Fill(ds.SalesPerson);
        return ds;
    }
}

我使用了在资源中找到的这个查询

<Query>
<Method Namespace="http://tempuri.org/" Name="GetData">
</Method>
<SoapAction>http://tempuri.org/GetData</SoapAction>
</Query>

“这个查询语言名称是什么”

但我得到了数据集的架构(我的表列显示为记录)。

我想了解更多如何获取某个表的架构。

谢谢

4

2 回答 2

0

转到您的 Web 服务的 URL 并将 ?wsdl 添加到它的末尾。

找到wsdl:definitions并查看targetNamespace属性。该值是MethodNamespace属性应在您的查询中设置的值。

找到name属性等于您要使用的方法的wsdl:operation元素,然后查看它下面的soap:operation。查看soapAction属性的值。该值是您将放置在查询中的SoapAction元素中的值。

此外,请参阅以下参考资料:

Reporting Services:使用 XML 和 Web 服务数据源

用于指定 XML 报告数据 (SSRS) 的 XML 查询语法

于 2011-10-26T18:04:05.747 回答
-1

请尝试更清楚您的要求。我不知道您发布的这个“查询”XML 是什么。它根本不是查询语言。

此外,您应该避免从 Web 服务返回 DataSet。它不能与非 .NET 平台互操作,有时也不能与 .NET 互操作。


我在 MSDN 上的 xmlDP 上找到了一些资源。请参阅xmldp 查询语法

我希望这会有所帮助。

于 2009-02-25T10:07:38.387 回答