C# 在Webservice中以数组形式发送参数

C# 在Webservice中以数组形式发送参数,c#,asp.net,web-services,C#,Asp.net,Web Services,如何在c#中的webservice中以数组形式发送参数 如何从数组参数返回xml元素将XmlElement更改为string并从方法返回string foreach (string value in txtproductCode) { // process the value string productCode = value ; } 哪种Web服务:asmx还是wcf?在实现上述服务时,您面临哪些问题?我的输出如下。。。。。。。

如何在c#中的webservice中以数组形式发送参数


如何从数组参数返回xml元素将XmlElement更改为string并从方法返回string

foreach (string value in txtproductCode)
    {
        // process the value
               string productCode = value ;
    }

哪种Web服务:asmx还是wcf?在实现上述服务时,您面临哪些问题?我的输出如下。。。。。。。。。。(测试表单仅适用于以基元类型作为参数的方法…)而不是获取xmlif i get sample project它将对我更有帮助…我已将xml更改为字符串…但我需要一些语法将数组值传递给数据集…这正是u wana要转换的内容,您可以获取数组值,并且可以轻松地将其转换为任何有效形式。
foreach (string value in txtproductCode)
    {
        // process the value
               string productCode = value ;
    }