i have a WCF Method that receives array of structs. the struct contains two strings "Key" and "Value":
public struct mydata
{
public String key;
public String value;
}
[ServiceContract]
public interface IBasicService
{
[OperationContract]
[WebGet(UriTemplate = "ReceiveStructsOfData?myDataArray={???????? WHAT DO I WRITE HERE?????}")]
void ReceiveStructsOfData(mydata[] myDataArray);
}
i want the method to support HTTP "GET". i already know how to config a WCF to support "GET" ( endpoint and WebGETAttribute). What do i write in the UriTemplate of WebGet ( see above example) ??
how will the Client code look like using Framework 2.0 (HttpWebRequest) ?
HttpWebRequest myHttpWebRequest = (HttpWebRequest)WebRequest.Create("http://localhost/BasicWCF/BasicService.svc/ReceiveStructsOfData?myDataArray={???????? WHAT DO I WRITE HERE?????}");
myHttpWebRequest.Method = "GET";
HttpWebResponse myHttpWebResponse = (HttpWebResponse)myHttpWebRequest.GetResponse();
thank you...