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

时间:2012-02-18 11:44:42

标签: c# web-services wsdl

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

<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>

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

1 个答案:

答案 0 :(得分:0)

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

http://forums.asp.net/t/1638752.aspx/1