Connection between server and client - Java for Android App Development

How to create web service for android app. and how to connect ?

Is that what you want?
http://forum.xda-developers.com/showthread.php?t=2325799

Magesh.K said:
How to create web service for android app. and how to connect ?
Click to expand...
Click to collapse
For the webserver I use Jersey Lib it's very easy to do with annotations and then you only need to do a HTTP GET/POST/PUT to the WS on the server

thank you for replay,
can you give step by step explanation? ,with sql server

For sql server, most likely you're using an IIS for web server... Hence you can use asp for web services... w3schools offers a good tutorial on this... Have fun!
Sent from my LG-P350 using xda app-developers app

Related

How to make a http proxy?

I would like to make a http proxy to tunnel my data connection through it.
Anyone?
Sent from my Nexus S using Tapatalk 2
What exactly for? There are many proxies.
Sent from my XT883 using xda app-developers app
MrObvious said:
What exactly for? There are many proxies.
Sent from my XT883 using xda app-developers app
Click to expand...
Click to collapse
My data connection. Sometimes it won't let me access sites like Facebook. So I need HTTP instead of https
Sent from my Nexus S using Tapatalk 2
BUMPPPPPPP
Sent from my Nexus S using Tapatalk 2
The best way to do it is install something like squid and ssh on a computer you have at home them tunnel in with ssh and forward a local port to the squid proxy server at home. That's what i used to do to get around content filters at libraries so i could get on Facebook and stuff. You can get all the stuff you need as portable apps on a usb drive.
The easiest way, though, is to just enable a vpn server on your router or computer and use the built in vpn functions on android to route all traffic through the tunnel. The big problem with that is that you cannot use it on an untrusted device because it's like connecting it directly to your home network. Any worms on it can infect any computer at home.
If you need step by step instructions I'd be happy to help with either method, but I'll need to know more specifics about your home setup. If you have a router that supports dd-wrt, there is a great guide to the vpn method in this same forum.
Sent from my SGH-T679 using xda app-developers app
Duckman5 said:
The best way to do it is install something like squid and ssh on a computer you have at home them tunnel in with ssh and forward a local port to the squid proxy server at home. That's what i used to do to get around content filters at libraries so i could get on Facebook and stuff. You can get all the stuff you need as portable apps on a usb drive.
The easiest way, though, is to just enable a vpn server on your router or computer and use the built in vpn functions on android to route all traffic through the tunnel. The big problem with that is that you cannot use it on an untrusted device because it's like connecting it directly to your home network. Any worms on it can infect any computer at home.
If you need step by step instructions I'd be happy to help with either method, but I'll need to know more specifics about your home setup. If you have a router that supports dd-wrt, there is a great guide to the vpn method in this same forum.
Sent from my SGH-T679 using xda app-developers app
Click to expand...
Click to collapse
Pm sent.
Sent from my Nexus S using Tapatalk 2

How can I turn a Windows 2003 Server into a proxy host?

It's Windows Server 2003 Server 64 bit. How can I make this a proxy I can access on other computers? I can't turn it into a VPN because it says that I only have one NIC and if I try to get around that by using customized instead of simple VPN, the RRAS service doesnt start with error 0x2. I can't use the SFC command because it says that I am not an administrator and I am as well as running it as admin. What can I do to solve any problem?
You could always install Cygwin and do a SSH server.
MrObvious said:
You could always install Cygwin and do a SSH server.
Click to expand...
Click to collapse
How do you use an SSH server as a proxy?
Google PuTTY SSH tunnel.
Sent from my XT862 using xda app-developers app
MrObvious said:
Google PuTTY SSH tunnel.
Sent from my XT862 using xda app-developers app
Click to expand...
Click to collapse
I can't seem to find a way to set this up on the server side. I know that my firewall is turned off but when attempting to connect to it, it only shows a blank DOS windows or command prompt with a green curser. When doing this from my unhindered internet at home (no webpages blocked, which is what I am trying to bypass) it allows me to login but not share the internet connection. Would you like to point me to a decent tutorial? Sorry for taking up your time with my stupid questions and problems.
http://howto.ccs.neu.edu/howto/windows/ssh-port-tunneling-with-putty/
MrObvious said:
[I cant post URLs...]
Click to expand...
Click to collapse
It doesn't do anything. It says connection refused at client side. With BetVise ssh running, it doesnt help, but it does let me login.
nice to see this...

SSL

Hi, Regards!
I have the next scenario. I am working in a solution that envolve several development tools. We have two web services, the first of them was developed on Visual Studio 2008 using SOAP and the other was developed on Java using Restfull. To communicate my Android App wih SOAP web services i am using KSOAP packages, while to communicate with Restfull I am using the packages java.net.URL and java.net.URLConnection.
Both web servers that host web services will be converted to SSL servers using trust digital certificates issued by CAs. On NO SSL server I can use HTTP protocol while on SSL Server I must use HTTPS protocol. My question is: I must change my program to allow it to communicate with SSL web servers that host web services?
I thank yours commnts.
Regards!
As far as I know, with restfull and java.net.URL, you just have to change HTTP to HTTPS in url. I don't know about soap.
Sent from my LG-P760 using Tapatalk 4

[Q] uPLOAD fILE TO SERVER

hello friends..... i am building an app that selects a file (text, image , video...) and uploads it on a server...... now, I have tried uploading it on to a local wamp server using a php script, but, it does'nt work. Can i upload the file on a free web hosting website like neq3 or 5gbfree.com? Help required urgently..... PLEASE HELP
If you don't mind using ftp it should be relatively easy to set up. The free web hosing I use has an ftp server built in, its called 000webhost. Also you could set up a php script there as well if that's what you need.
Sent from my SCH-I535 using XDA Premium 4 mobile app

Is good to use custom server app?

I have planned to develop a app like PushBullet.
On server side,i planned to use custom server app written in java to accept connection from client using socket.
About server app,im going to upload it to VPS and run it.
Is this good idea?

Categories

Resources