Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to learn to implement web services using soap in php. I also want to utilize the service using java client. I am interested in soap protocol and if there is some othere better protocol.
My research: I got many online tutorials on implementing web service using soap in php. I also got greate content on soap protocol.
My question: How to utilize that service using java client? Is it possible? Can you refer me to tutorial which serves my need? Is there any good book that i can purchase. I also want to know how can a php soap server authenticate a java client. Is authentication done for each request or maintaining session is possible.
By definition:
Web Services have been designed to support interoperable Machine to
Machine interaction over a network.
So consuming a web service is independent of the implementation technology of the web service, now you can search for "implement a Java based SOAP client" on SO.
plus check below URLs:
Java Client – PHP Soapserver
And THIS free book by Nan-Chao Huang.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a book, tool, software library, tutorial or other off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I'm looking for the same (or, at least, very similar) tool like ASP.NET WebAPI (C#) in Java world, so I can use it with the JavaScript $.ajax call.
Any help would be appreciated.
The closest is Java API for RESTful Web Services:
JAX-RS: Java API for RESTful Web Services is a Java programming language API that provides support in creating web services according to the Representational State Transfer (REST) architectural pattern. JAX-RS uses annotations, introduced in Java SE 5, to simplify the development and deployment of web service clients and endpoints.
See full examples in the JAX-RS Tutorial - Mkyong.com and JAX-RS - YouTube.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am working on XMPP client for Android, we have establish our Ejabberd server(2.1.11) on ubuntu 14.04.
For implementing XMPP android client i have used patched version of java smack called aSmack and it is great as you have to include asmack.XXX.jar in your android project lib folder and write some code which is easy available on INTERNET,i want to thank all developer for their awesome work.
Here
I am curious what kind of mechanism aSmack using to communicate with
XMPP server
But as per our client requirement i cant use any 3'rd party library for implementing Xmpp client in android[means i cant use aSmack :-( ]
1>>. Is there any Android native library available for implementing xmpp client?
Thanks in advance!!!!!!
If with 'Android native library' you mean 'an API from the standard Android SDK' then no, there is not such native library. To reach that requirement you'll have to write your own XMPP API.
I advice you to explain your contractor about free software licenses and ask him to change that requirement.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 8 years ago.
Improve this question
I am planning to write a Web Service in Java which connects to a MySQL Database and computes and exposes different information from it.
Then an Android app will connect to this Web Service and process the information.
Initially I thought of using XML files, but I was advised that it is not the best-practice correct way, and the Service part will not be light weight. That I should use JSON.
What is the correct architecture and solution for my problem ?
Also is it possible to run a Java Web Service without Tomcat, directly by the JVM from a jar?
Any documentation or links would be helpful.
yes, for android its better to use JSON, its native API (built in)
and its much lighter.
also , its recommended to use RESTful service, for the same reasons (performance, lighter )
regarding the webservice without tomcat, i am not sure its possible, because you always need a container to manage and run your code.
here is a good tutorial to create RESTful service using Jersy.
http://www.vogella.com/tutorials/REST/article.html
the sample shows data as XML, you can change to JSON.
You can use node.js. This will not require Tomcat or any other application server since it itself hots a HTTP server in itself.
https://blog.nodejitsu.com/a-simple-webservice-in-nodejs/
MySQL with Node.js
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
I want to write a chat client. I could use RMI for that but I don't want to. Moreover I plan to have a web-interface.
I was reading about XMPP protocol and also the fact that google talk uses it. How can I implement it to write my own chat client, not a client for any other IM service? Is there any library available that could help me implement my own chat service (IM) ?
Check out Smack. Its widely used and mature library for writing xmpp application. Here is an example of writing xmpp client. Here is one more example.
There are many libraries available on the xmpp site iteself. You can choose anyone based on your requirement XMPP Libraries
Go for SMACK if you are writing your IM in JAVA.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 9 years ago.
Improve this question
Hello people of the world!
I'm an Android developer and so far I've worked only on the client side. My next project is in need of a server to communicate with and I wanna try to build it myself.
Can someone give me direction to a good source of learning how to build a nice, small and simple Java restful server?
I've looked around, there is way too much info out there and it's confusing. Maybe one of you was in my shoes already and know a good source for it?
First of all you should read up on and learn how to use Jersey. This is the best implementation of JAX-RS API (REST for Java).
You will also need a good HTTP server and Java Servlet container. For that I'd advise you to use Jetty. Here are a few good tutorials:
Crunchify: Build RESTful Service in Java using JAX-RS and Jersey (Celsius to Fahrenheit & Fahrenheit to Celsius)
Vogella: REST with Java (JAX-RS) using Jersey - Tutorial
You asked for a "simple server", however if you're looking for high performance then read this tutorial:
Javarants: Using JAX-RS with Protocol Buffers for high-performance REST APIs, and use the Grizzly container instead of Jetty:
If you intend to build a simple server with sockets, you could try:
this SO thread for starters.
this interesting tutorial about sockets, and
the official Oracle page about sockets.
Edit this doesn't cover the "restful" side of your question though.
I just went trough this myself creating a Java server with Android client.
And this two links provided plenty of info!
a tip is to search for Java Socket server.
to learn JavaSocket
I use http://docs.oracle.com/javase/tutorial/networking/sockets/clientServer.html
And to pull it all togheter with Android client and ServerSide.
http://myandroidsolutions.blogspot.se/2012/07/android-tcp-connection-tutorial.html
Don't forgett to open ports in ur firewall to get the communication to work! to add Internet support in ur Android Manifest!