0
這是什麼WSDL樣子:在wsdl中有一個complexType,我如何在WCF中創建一個等價的數據合同?
<wsdl:types>
<s:schema targetNamespace="http://mfisoft.ru/voip/service/soap">
<s:complexType name="column">
<s:all>
<s:element name="name" type="s:string"/>
<s:element name="value" type="s:string"/>
</s:all>
</s:complexType>
<s:complexType name="row">
<s:complexContent>
<s:restriction base="ns:Array">
<s:sequence>
<s:element name="item" type="ns3:column" maxOccurs="unbounded"/>
</s:sequence>
<s:attribute ref="ns:arrayType" arrayType="ns3:column[]" />
</s:restriction>
</s:complexContent>
</s:complexType>
</s:schema>
</wsdl:types>
其中ns是的xmlns = 「http://schemas.xmlsoap.org/wsdl/」 ANS NS3是的xmlns:NS3 =「HTTP:// mfisoft .ru/voip/service/soap「
我只想知道,如果我編寫WCF Web服務來模擬上述wsdl, 的Web服務描述我如何定義complexType?例如,以「列」爲例: ?這是等同的形式嗎?
[DataContract]
public class column
{
[DataMember]
public string name;
[DataMember]
public string value;
}
那麼「行」呢?
感謝,等待您的回答,任何幫助是讚賞