webservice中的数据集 [英] Dataset in webservice

查看:239
本文介绍了webservice中的数据集的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在SQL Server中有一个表,其中包含字段BARCODE,STORECODE,STOCKLEVEL和LAST_UPDATED。我需要在我的Web服务中编写一个应该返回数据集的函数,xml应该是这样的。



Hi,

I have a table in SQL Server with fields BARCODE, STORECODE, STOCKLEVEL and LAST_UPDATED. I need to write a function in my web service that should return a dataset and the xml should be like this

stocklevel
            barcode 5606578926114 /barcode
stocklevel storecode=""StoreA"" lastupdated=""2013-02-04T10:07:36+00:00"" 2 /stocklevel
stocklevel storecode=""StoreB"" lastupdated=""2013-02-04T10:07:36+00:00"" 10 /stocklevel
stocklevel storecode=""StoreC"" lastupdated=""2013-02-04T10:07:36+00:00"" 6 /stocklevel

…etc…

/stocklevel





有没有办法这样做。任何帮助都会很棒...





谢谢

Anish



Is there a way to do like this. Any help would be great...


Thanks
Anish

推荐答案

嗨Anish,



只需查看下面的链接,这可能会有所帮助。 :)





数据集到webservice中所需格式的XML [ ^ ]
Hi Anish ,

just check the Below link which may help u a lot. :)


Dataset to desired format XML in webservice[^]


这篇关于webservice中的数据集的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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