Best Answer Dave1374, 12 August 2013 - 12:17 PM
Hey VanKurt.
This is how I send data to my wcf service.
string query = "http://www.x.com/Service1.svc/Log?Log=" + data;using (HttpWebRequest myReq = (HttpWebRequest)WebRequest.Create(query)){ myReq.Method = "GET"; using (HttpWebResponse WebResp = (HttpWebResponse)myReq.GetResponse()) { }}
Both objects require
using System.Net;
Maybe I'm doing it wrong tho... didn't know the netmf toolbox had a httpclient class.
You should had try catch to the code snippet btw.
here's an interesting stackoverflow topic about the using statement. not to be confused with the one to access a namespace.
edit: heh just realised you already had usings in your code... so, yeah.
Dave
Go to the full post