我很困惑。
我正在阅读WCF&amp ;;上的一堆文章和SO帖子SOAP& REST,但我仍然混淆了客户端和WCF服务器之间的通信。
当我做这样的事情时:
[ServiceContract]
public interface IGeoService
{
[OperationContract]
ZipCodeData GetZipInfo(string zip);
[OperationContract]
IEnumerable<string> GetStates(bool primaryOnly);
[OperationContract(Name = "GetZipsByState")]
IEnumerable<ZipCodeData> GetZips(string state);
[OperationContract(Name = "GetZipsForRange")]
IEnumerable<ZipCodeData> GetZips(string zip, int range);
}
我正在订立合同,对吗?
然后,当从WCF客户端请求其中一个方法时,WCF服务器的返回值究竟是什么?它是JSON还是XML?
由于