从xml到asmx页面的检索数据应存储在数据库中 [英] retreive data from xml to asmx page should store in database

查看:63
本文介绍了从xml到asmx页面的检索数据应存储在数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


从asp.net,无论我输入什么文本,都将存储在xml文件中,现在我想利用Web服务(即asmx页面)中的xml内容并存储在数据库中,
任何人都可以提出想法怎么做.

在此先感谢
Akshatha

Hi,
From asp.net whatever the text i enter it will store in xml file,now i want to make use of the xml content in web service(i.e asmx page)and store in database,
can anyone please give idea how to do.

Thanks in advance
Akshatha

推荐答案

任何人都可以提出如何做的想法.
不知道是什么阻止了你!

在您的Web服务中创建SaveData方法.它需要一个参数作为XML.公开方法.无论何时需要,都可以使用XML调用该方法.

在DB层中,传递XML,然后将其原样保存在数据库中.都是简单的简单步骤.试试吧!
can anyone please give idea how to do.
Not sure of what is stopping you!

Create a SaveData method in your webservice. It would take one parameter as XML. Expose the method. Whenever needed, call the method with XML.

In DB layer, get the XML passed and then save it in database as is. All are simple straight steps. Try!


这篇关于从xml到asmx页面的检索数据应存储在数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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