为了账号安全,请及时绑定邮箱和手机立即绑定

WCF MessageContract属性未显示在WSDL中

WCF MessageContract属性未显示在WSDL中

C#
浮云间 2021-04-29 14:10:18
MessageContract为了Stream通过WCF与其他一些数据一起传输,我定义了一个:[MessageContract]public class DTSetGeotagImageMessage{    [MessageHeader(MustUnderstand = true)]    public DTGeotagImageFileInfo GeotagImageFileInfo;    [MessageBodyMember(Order = 1)]    public Stream FileData;}public class DTGeotagImageFileInfo{ //All these properties are not showing up in the WSDL:    public long? GeotagID { get; internal set; }    public string GeotagGuid { get; internal set; }    public string ImageGuid { get; internal set; }    public long GeotagFieldId { get; internal set; }    public double Lat { get; internal set; }    public double Lon { get; internal set; }}WSDL:<xs:complexType name="DTGeotagImageFileInfo"> <xs:sequence/></xs:complexType><xs:element name="DTGeotagImageFileInfo" nillable="true" type="tns:DTGeotagImageFileInfo"/>但是标头数据类的属性未显示在WSDL文件中。如何让他们出现?
查看完整描述

2 回答

  • 2 回答
  • 0 关注
  • 171 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信