I'm confused , very .
I'm reading a bunch of articles and SO posts on WCF & SOAP & REST , but I'm still confusing everything regarding the communication between a client and WCF server .
When I'm doing something like this :
[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);
}
I'm making a contract , right ?
Then when one of those methods is requested from a WCF client , what exactly is the return value from the WCF server ? is it a JSON , or an XML ?
Thanks