Solved

Need to get a GPS string from my Java applet

Posted on 2010-09-22
2
530 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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A quick way to get a menu to work on our website, is using the Menu control and assign it to a web.sitemap using SiteMapDataSource. Example of web.sitemap file: (CODE) Sample code to add to the page menu: (CODE) Running the application, we wi…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
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…

746 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

13 Experts available now in Live!

Get 1:1 Help Now