Passing parameters to web service method in c#
- by wafa.cs1
Hello
I'm developing an android application .. which will send location data to a web service to store in the server database.
In Java:
I've used REST protocol so the URI is:
HttpPost request = new HttpPost("http://trafficmapsa.com/GService.asmx/GPSdata? lon="+Lon+"&Lat="+Lat+"&speed="+speed);
In Asp.net (c#) web service will be:
[WebMethod]
public CountryName GPSdata(Double Lon, Double Lat, Double speed)
{
after passing the data from android ..nothing return in back .. and there is no data in the database!!
Is there any library missing in the CS file!!
I cannot figure out what is the problem.