将XML数据上载到Web服务 [英] Upload XML data to Web services

查看:75
本文介绍了将XML数据上载到Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的数据需要从我的SQL数据库中提取并格式化为XML,然后上传到Web服务。有什么想法,我怎么能通过SSIS或SQL做到这一点?如果有网站示例,请提供链接。





谢谢,

I have data that needs to extract from my SQL database and format into XML and then upload to a web services. Any ideas how I can I do this thru a SSIS or SQL? If there are website examples please provide me the link.


Thanks,

推荐答案

这是将sql表数据导出为XML的查询



SELECT Col1,Col2,Col3

FROM< table_name>

FOR XML AUTO,TYPE,ELEMENTS,ROOT('< rootname>')



更多信息 - 请参考这个 - 从SQL Server导出数据为XML [ ^ ]



请参考以下链接与Web服务合作



http://www.c-sharpcorner.com/1/133/web-services-in-C-Sharp.aspx [ ^ ]
Here's the query to export your sql table data to XML

SELECT Col1, Col2, Col3
FROM <table_name>
FOR XML AUTO,TYPE, ELEMENTS ,ROOT('<rootname>')

More Info - Refer this one - Export data from SQL Server as XML[^]

Please refer the below link to work with Webservices

http://www.c-sharpcorner.com/1/133/web-services-in-C-Sharp.aspx[^]


感谢Rajan。但是这些网站没有告诉我如何将XML数据上传到Web服务URL。

有什么建议吗?



谢谢,
Thanks Rajan. But the websites does not show me how to upload the XML data to a web services URL.
Any advice?

Thanks,


这篇关于将XML数据上载到Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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