Solved

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

Posted on 2006-07-17
6
355 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Paging GridView 7 48
Is there a way to programmatically restart a VB.Net application when an exception occurs? 8 46
Hide Tab Page 3 33
Vb. Net application freezes 9 28
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

17 Experts available now in Live!

Get 1:1 Help Now