Passing parameters to web service method in c#

Posted by wafa.cs1 on Stack Overflow See other posts from Stack Overflow or by wafa.cs1
Published on 2010-05-17T05:35:10Z Indexed on 2010/05/17 5:40 UTC
Read the original article Hit count: 305

Filed under:
|
|
|
|

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.

© Stack Overflow or respective owner

Related posts about c#

Related posts about webservice