WCF OperationContract作为XmlElement返回但是Client App如何接收它

时间:2015-03-14 01:50:45

标签: wcf wcf-binding

在WCF中我声明如下,

[FaultContract(typeof(ServiceFaultContract))] [OperationContract][return: XmlElement("Customer")] Customer GetCustomer(long CustID);

在WCFTest客户端中,它在XmL Tab中以XML的形式重新获取值。

但是格式化选项卡显示为空对象。

有人建议如何在我的ClientApp中使用从GetCustomer方法中检索客户对象?

有关更多信息,我使用basicHttpBinding来绑定opertaions。

0 个答案:

没有答案
相关问题