【发布时间】:2017-10-27 15:45:48
【问题描述】:
我需要在 c# 中使用 asmx webservice(wsdl) 来更新和删除这个 xml 文件
enter code here
<?xml version="1.0" encoding="utf-8"?>
<StudentRecords>
<student>
<id>1</id>
<cohort>BSE</cohort>`enter code here`
<firstname>Sherlock</firstname>
<lastname>Holmes</lastname>
<address>United Kingdom</address>
</student>
<student>
<id>2</id>
<cohort>BSE</cohort>
<firstname>Tom</firstname>
<lastname>Hanks</lastname>
<address>United Kingdom</address>
</student>
</StudentRecords>
【问题讨论】:
-
有什么问题!
-
问题是我需要在 c# 中使用 wsdl 创建一个 web 服务来添加、更新和删除新元素(在这种情况下是学生)。到目前为止,设法在客户端页面中添加和使用......我坚持更新和删除
-
哪些元素需要更新?您需要删除所有学生还是仅删除特定学生。
-
实际上是一个学生..onclick 事件将使用这种编辑或删除方法...当我单击它时,它会在 web 服务中调用该方法并编辑或删除一个学生(客户端中的 gridview)跨度>
标签: c# xml visual-studio wsdl asmx