我创建了 WCF 服务,但服务 WSDL 没有显示我的类(复杂类型)。
下面是服务:
[ServiceContract]
public interface IFedexService
{
[OperationContract]
ShipmentReply CreateMultiFedExShipment(RxRdShipment shipment);
[OperationContract]
ShipmentReply CreateFedExShipment(RxRdShipment shipment);
}
我的班级定义是:
[DataContract]
public class ShipmentReply
{
[DataMember]
public string ReferenceNumber { get; set; }
[DataMember]
public string MasterTrackingNumber { get; set; }
[DataMember]
public List<ReplyPackage> Packages { get; set; }
[DataMember]
public bool Response { get; set; }
[DataMember]
public RxNotification Notification { get; set; }
}
我的问题是我没有ShipmentReply
在WSDL
. 我的问题是什么?
谢谢你,阿雷芬