[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 362
  • Last Modified:

how to hit URL from vb.net Win Mobile 5 SmartPhone app?

How can I hit a URL from a VB.net Windows Mobile 5 smartphone application? I need to hit a URL like:

www.url.com?par1=1&par2=2 

... from a VB.net windows mobile 5 smartphone app without opening the browser window.

Currently I try something like:

dim push as string
push = "http://www.url.com?par1=1&par2=2"
process.start(push,"")

... which works but opens the web browser which I don't want.

Thanks,
JB
0
jtby
Asked:
jtby
  • 3
  • 3
1 Solution
 
Bob LearnedCommented:
Why do you need to "hit" a page without the browser?

Bob
0
 
jtbyAuthor Commented:
I want a small app running on my smartphone to periodically send some information to an application I have running on a web server.  The app on the phone will actually have no user interface and will not interact with the user.

The URL I need to hit is more like:

http://www.url.com/updateLocations.asmx/updateLocation?_x=350442&_y=177884

... and you can probably guess the other part of my smartphone app is to read coordinates from a bluetooth connected GPS.

 
0
 
Bob LearnedCommented:
Sounds more like a web service that you need to interface with.

Bob
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
jtbyAuthor Commented:
yeah.  I'm a bit new to vb.net - in vb6 I would use a web browser control, make it invisible, and then navigate the broswer control to the URL:

http://www.url.com/updateLocations.asmx/updateLocation?_x=350442&_y=177884

... and would have successfully passed coords from my laptop + aircard + gps + vb6  app into my web server app, causing it to appear on the map of any web broswer client viewing the web application.  Now I am trying to replicate that same activity with a smartphone, windows mobile 5  + gps + vb.net.

Do you have any tips for how to send to this very simple web service that takes just 2 parameters, x and y, from VB.net - like a line of code to do it in vb.net?  I think it must be very simple right?
0
 
Bob LearnedCommented:
You should be able to add a web reference, and make calls to the web methods from within a class in your WM5 application.  There should be an 'Add Web Reference' option for the project.

Bob
0
 
jtbyAuthor Commented:
Thanks, that does it - works perfect from a desktop windows app, but from smartphone app it crashes on the phone - probably a deployment problem of something or other - thats a new set of questions though.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now