1

I am making an app in which i want to send gps coordinates like latitude and longitude to server in xml .. Can anybody help me how to do this .. Any help will be appreciated ... Thanks..

3 Answers3

1

Google is really your friend on this one. Stackoverflow is more ment for programming issues, not tutorials on how to do something, noone will write the code for you.

What have you tried earlier?

Similar question How to send GPS data from android to a website?

Obtaining users location

Send to server: Android (Java) Simple Send and receive with Server - Fast Setup Challenge

How to send a data to a web server from Android

Soap:

https://stackoverflow.com/questions/3112426/best-soap-tutorials

Android WSDL/SOAP service client

How to call a SOAP web service on Android

Community
  • 1
  • 1
David Olsson
  • 8,085
  • 3
  • 30
  • 38
0

One way I can think of is to initiate a POST request via HTTP using a URL like:

http://server.example.com/postgps

(Assume server.example.com is the server to send the data to.) The request body would then contain XML data.

The question, however, is too vague for us to help further.

Peter O.
  • 32,158
  • 14
  • 82
  • 96
0

What does your server accept as an interface? GML is a standard XML grammar for geographic information. You can simplify it by using GML Simple Features Profile. If you want something even easier, you might try GeoURI.

h3ky1
  • 61
  • 10