|
|
If you have a proper question then please edit the above and try and explain what your problem is. If you are just expecting someone to provide you with the source code for some program you are interested in then you have come to the wrong place.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
Hi all,
I have a web service. My coworker provides that to me. It is in the internal network. I have a PDA program (in Windows Mobile 6) which use the web service. Originally it works fine. I can debug the program in VS2008.
One day as we have to test, my coworker and I move to a separate network. His machine IP changes and so does my machine. After changing, I then cannot run my program in debug mode.
It always give this message:
Quote: Invalid URI: The hostname could not be parsed
And it stops at GetResponse statement in the following code:
Public Shared Function CheckURLConnection(ByVal strUrl As String, ByVal networkCredential As NetworkCredential, ByRef strMsg As String) As Boolean
Dim streamReader As StreamReader
Dim webResponse As WebResponse = Nothing
Dim streamResponse As Stream
Dim webRequest As WebRequest
Dim isSucceed As Boolean = False
Try
webRequest = webRequest.Create(strUrl)
webRequest.Credentials = networkCredential
webRequest.Timeout = 60000
webResponse = webRequest.GetResponse
streamResponse = webResponse.GetResponseStream
^^^^^^^^^^^^^^^^^
streamReader = New StreamReader(streamResponse)
And if I run the program without debugging, there is no problem. There is no stopping at webResponse.GetResponseStream! Strange. Please help.
{Edited} The URL is this format: http://10.25.0.52/tems_rfid/TEMS_RFID_WebService.asmx
Of course, I have validated independently I can access using IE!
So the URI, in theory, can be parsed.
{Edited 2} If I create a new PDA program and put the CheckURLConnection() in there, no problem!
|
|
|
|
|
Try to keep the URL in between inverted commas "URL" .
modified 31-Aug-12 8:07am.
|
|
|
|
|
But how would that help me?
At first, I run the program in debug mode in my original network. URL at that time is this:
http://10.25.0.52/tems_rfid/TEMS_RFID_WebService.asmx
And it works!
Later on we have to test out at another network segment. Instead of getting IP address using DHCP, we assign IP address to each device. We also set up the Subnet mask and Default gateway.) Of course that includes my own laptop, my coworker's network (which hosts the web service) and the mobile device. As the IP of the machine hosting the web service changes, I need to update the URL to something like:
http://192.168.0.20/tems_rfid/tems_RFID_WebService.asmx
Afterward, I cannot debug run the program. If I just run the program, there is no problem. Any thoughts?
|
|
|
|
|
Hi;
Can anybody kindly let me know from where i can get "How TO use Web Services in Android"
??
I searched but didnt find any thing which can teach me in good manner.
Thanks in advance.
|
|
|
|
|
web services handle different sites in android like, soap services(.net), Php serivces(.php),json etc.. which one u're looking out for?
|
|
|
|
|
Actually i want to use web service provided by G-Mail, Yahoomail.
I want to learn from basic i.e. for webservice(Any service)
of any webservice provider.
kindly get me out of it??
|
|
|
|
|
and i am using Android in IDE -Ecllipse
|
|
|
|
|
Hi anjaana,
First u need to make sure which web service are you going too use.. for example, try with php services example , .net service example. bcos, every service uses different methods to access web service methods...
i can give u lot of example to carry on..
|
|
|
|
|
sir i want to use Web Service of Face book and Monster,yahoo.
Facebook is in php, But i have no idea about Monster,yahoo.
nd sir on internet i read once that it is not good to use google web service in connection with android>??
Kindly help me in this.
|
|
|
|
|
is there any chat option available.. i could make u clear...
|
|
|
|
|
sir i am on skype..
r u there?
|
|
|
|
|
|
mine is agarg007
i am sending
|
|
|
|
|
I want to build app for android phones so which platform should i choose?
what if i want to upgrade or downgrade from present platform?
|
|
|
|
|
|
The most convenient platform to develop Android apps is Eclipse IDE. however there are several versions of Eclipse. But i prefer to use Eclipse(Juno)
Sahil Mahajan(eMM jAY)
|
|
|
|
|
As mentioned Eclipse if the most popular, the other 2 main players are Motodev Studio and IntelliJ IDEA. I've heard people are also using NetBeans.
Eclipse can run on a number of platforms. I use a Mac but I'm guessing most use Windows.
Eclipse is free and most of the support forums relate to Eclipse.
"You get that on the big jobs."
|
|
|
|
|
|
I would suggest you most convenient platform to develop Android apps is Eclipse IDE. However indigo is the latest version, but i prefer to use Eclipse(Helios)
|
|
|
|
|
i wanna learn adroid app
can u suggest me wich platform to use
and any good tutorial
sry for my english
|
|
|
|
|
Take a look at some of the Android articles[^] here on CodeProject.
One of these days I'm going to think of a really clever signature.
|
|
|
|
|
I am programming for Windows Mobile 6.
I am writing an application. Here is the design:
1) A textbox for user to scan a barcode.
2) After scanning, automatically call web service to search the database.
3) If found data, display in a table below.
To solve 2, I use text1_TextChanged(). However, as the barcode is long (some 11 characters), the TextChanged() function is called more than 11 times. That means the database is searched for more than 11 times. The performance is too slow.
I have searched the web and find out this:
.NET — Textbox control - wait till user is done typing[^]
I use the timer approach, but find out the tick function is called 11 times. Any help?
(Please note that the barcode is scanned in, not typed in.)
[Edited at 2012-08-16] The project is a bit complicated now. The textbox could hold any number of characters from 4 to 24. So I cannot just count to the end. If I start querying the database once I have at least 4 characters, I could end up with searching 20 times...
modified 15-Aug-12 22:45pm.
|
|
|
|
|
I may be wrong about this (I have no experience with Windows Mobile), but isn't there any way to check for how many characters have been entered in the text field?
I mean, you said the barcode is some 11 characters, but does it have any lower bound? (for instance, it can't be shorter than 8 characters). Then, when it reaches the lower bound, you can start querying the database from there.
Also alternatively, instead of querying the database automatically when the code is scanned, you could add another button for a manual scan - when the user finishes scanning the barcode and the textfield is completed, show him another button to do the search and display the results in the table. In this case, there is another click for the user, but I think the performance benefits far outweigh the usability drawbacks
Full-fledged Java/.NET lover, full-fledged PHP hater.
Full-fledged Google/Microsoft lover, full-fledged Apple hater.
Full-fledged Skype lover, full-fledged YM hater.
|
|
|
|