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.
Related
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 8 years ago.
Improve this question
I'm looking for a SPARQL parser and i find Apache Jena/arq and Redland librdf.
But Jena has been written in Java,so is there a way that I use Jena's APIs in C/C++, (maybe with SWIG,...)?
Depending on what functionality you need, it may be plausible to interact with an Apache Fuseki server via the SPARQL 1.1 Protocol. Fuseki is Jena, just wrapped in a Jetty service in order to implement the protocol.
If this is far heavier than what you are looking for, and you desire interacting with Jena from C/C++, then JNI (or better yet, some automated wrapper like SWIG) may be your best bet.
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
Does anyone knows if there is a good service oriented framework (like Apache Thrift) that supports both C++, java and python with a similar set of features but with lighter requirement?
My main issue with thrift is that it requires boost (on the C++ side) that is a good, but too big, library.
I can think of a few alternatives, although I can't speak for how they compare to Thrift. All of these should have Java, C++, and Python implementations.
Google Protobuf
Apache Avro
Hessian
Of the three, I think Google's Protobuf seems the most promising and documented.
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.
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
Is there any Java library allowing to build a simple standalone webservice server without any application server framework?
Java 6 contains JAX-WS, which makes it very easy to host a web service in a stand-alone application:
javax.xml.ws.Endpoint.publish("http://localhost:8000/myService/", myServiceImplementation);
Axis 2 has a simple standalone server (see http://ws.apache.org/axis2/1_4_1/installationguide.html)
Simple is the fastest and lightest NIO web server you will find in the Java world. About twice as fast as Jetty and a quarter the size.
Jetty can be run embedded in a java application. Have a look at it.