Solved

Need to get a GPS string from my Java applet

Posted on 2010-09-22
2
538 Views
Last Modified: 2012-05-10
I have a Java applet which gets the GPS data from a Boost phone, then fills a SOAP envelope and passes it to my ASP.NET 2.0 web service.  but I am looking for a solution that allows me to do away with the SOAP web service.  I'm having trouble hosting the service, getting the SQL Server database running and the NHIbernate working again.

Please tell me if this will work.

I modify the Java applet to package the data in one long string, perhaps 100 characters, for example:
42.245245XXX72.7575757XXX128XX354XX11-32-2010XX13:954:30

Can I send that string as a parameter to a website I have yet to write?

The Java applet could issue a call over HTTP such as:
http://12.32.143.43/42.245245XXX72.7575757XXX128XX354XX11-32-2010XX13:954:30

It's just a string.  What's the format for an optional parameter?

Anyway, you get the point.  I would send it to my simple website which will parse it and write it to a database or file.

Will that work?  If not, why not?  And what technology might allow me to do this?

Thanks,
newbieweb



0
Comment
Question by:newbieweb
2 Comments
 
LVL 55

Accepted Solution

by:
Jaime Olivares earned 500 total points
ID: 33740360
you don't need soap at all, just implement a simple asp.net page like: http://12.32.143.43/ReceiveGPS.asp

Then you can invoke it like http://12.32.143.43/ReceiveGPS.asp?read=42.245245XXX72.7575757XXX128XX354XX11-32-2010XX13:954:30

inside ReceiveGPS.asp, you can get the reading with something like:

System.Uri url = Request.UrlReferrer;
String query = url.Query;

have a look to 'query', it should contain: "read=42.245245XXX72.7575757XXX128XX354XX11-32-2010XX13:954:30"
0
 

Author Closing Comment

by:newbieweb
ID: 33740372
Sounds like cake.  Thanks.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now