Solved

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

Posted on 2006-07-17
6
354 Views
Last Modified: 2008-02-26
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
Comment
Question by:jtby
  • 3
  • 3
6 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17140528
Why do you need to "hit" a page without the browser?

Bob
0
 

Author Comment

by:jtby
ID: 17140645
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
 
LVL 96

Expert Comment

by:Bob Learned
ID: 17140704
Sounds more like a web service that you need to interface with.

Bob
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 

Author Comment

by:jtby
ID: 17140826
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
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 17141317
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
 

Author Comment

by:jtby
ID: 17141960
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 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

22 Experts available now in Live!

Get 1:1 Help Now