如何在C#Web服务中定义WebParameters,以便我的WSDL反映相同的特性?

如何在C#Web服务中定义WebParameters,以便我的WSDL反映相同的特性?,c#,web-services,wsdl,C#,Web Services,Wsdl,我正在尝试生成web参数,以便我的WSDL具有属性名称 目前,我的web服务结果是这样的: <ArrayOfAnyType> <anyType xsi:type="ArrayOfAnyType"> <anyType xsi:type="xsd:string">A123</anyType> <anyType xsi:type="xsd:string">FYP</anyType> <anyType xsi:type="xs

我正在尝试生成web参数,以便我的WSDL具有属性名称 目前,我的web服务结果是这样的:

<ArrayOfAnyType>
<anyType xsi:type="ArrayOfAnyType">
<anyType xsi:type="xsd:string">A123</anyType>
<anyType xsi:type="xsd:string">FYP</anyType>
<anyType xsi:type="xsd:string">1.347821</anyType>
<anyType xsi:type="xsd:string">103.682924</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">Simtech</anyType>
<anyType xsi:type="xsd:string">30/4/2009 6:08:37 AM</anyType>
<anyType xsi:type="xsd:string">100843.00</anyType>
<anyType xsi:type="xsd:string">simtech_order1</anyType>
</anyType>

A123
FYP
1.347821
103.682924
新技术
新技术
2009年4月30日上午6:08:37
100843
simtech_订单1
如何在C#Web服务中定义WebParameters以使我的WSDL反映相同的内容?

我在这里找到了答案! 它们不是web参数或类似的东西。 它是一个元素名


嗨,约翰,谢谢你的回复!我想我可能没有使用正确的术语。我要做的是将“name”元素与类型一起添加到xml中。因为现在它说的是anytype,而且也没有名字,所以当发送到我的android项目时,我很难读取这些数据。