2012-02-18 22 views
0

我想生成web參數,使我的WSDL具有的屬性名稱 目前,這是我的web服務結果的外觀:如何在C#Web服務中定義WebParameters以便我的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

什麼是「WebParameter」? – 2012-02-18 12:59:34

+0

HI John,感謝您的回覆! 我想我可能沒有使用正確的術語。我想要做的是將一個「name」元素與類型一起添加到xml中。由於現在它說任何類型 - 並且因爲沒有名字 - 我發送到我的android項目時很難閱讀這些數據。 – Karishma 2012-02-18 14:02:14

回答