Best REST Client Framework/Utility on Android [closed] - java

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 9 years ago.
I'm about to build an Android application that will use a RESTful Web Service. I don't want to write the REST client by myself, as I want it to be as effective and stable as possible (this is the first time I'm using REST).
Are there any (free) frameworks or utilities avaibale for Android/Java that I can use in my project?

Restlet is an excellent REST framework and has an Android edition.

Any HTTP Client library should be perfectly adequate to interact RESTfully with a web API. E.g. http://developer.android.com/reference/org/apache/http/client/HttpClient.html

try out Spring Android - is has very handy class RestTemplate.

I'm also looking for a SMALL solution for rest client on Android. After a quick comparison, I found:
Resting v0.7: resting-0.7-dev-release-android.jar - 1.3MB (all-in-one according to
the doc)
Restlet v2.1.2: org.restlet.jar - 728KB (however must > 1MB after adding httpclient extention and json extention)
Spring for Android v1.0.1: spring-android-core-1.0.1.RELEASE.jar 113KB + spring-android-rest-template-1.0.1.RELEASE.jar 186KB + gson-2.2.3.jar 194KB = 493KB (without auth support, otherwise spring social will be a dependency)
Please correct me if any miss.

check out Resting - "Lightweight Java component to consume REST service and transform response into objects"
http://code.google.com/p/resting/
i haven't used it myself, but i plan to.
to go along with it, i'm searching for example source code to implement the best practices described in this google IO session. http://www.youtube.com/watch?v=xHXn3Kg2IQE

Related

How do I create a Java web service client without data binding? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm building my own web service client data binding mechanism customized for my client. I would like to build my own SOAP message on the request and receive the SOAP message response. I started writing a client directly interacting with the socket, but started getting hung up with the complexities of WS-Security. Any ideas on libraries and/or approaches for this project?
What makes you think that you need custom bindings? Probably those tested with 1000-s of developers are quite mature.
Take a look at Apache CXF. Go through architecture documentation. You may find an extension point there suitable for your needs.
Apache CXF currently supported data bindings: JAXB 2.x (default), Aegis, Apache XMLBeans, Service Data Objects (SDO) and JiBX (under development). If any of those doesn't fit your needs attach your own following data binding architecture docs.

I need to create a web-application in java which consumes SOAP based .Net web service. For this which tool and framework I shall use? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
Things to be considered are:
Open Source
API for generating a SOAP request from a WSDL file. (I have done some samples with AXIS 2.)
Easy implementation ( like PLAY/GRAILS frameworks) to optimize developer productivity.
I have found this link : http://playframework.wordpress.com/2010/08/15/web-services-using-play/
which sounds easier to build but not sure about the complexities when the requirement changes over a period of time.
As of now there will not be any data base to store any details. But the requirement might change once the prototype is finished.
Thanks in advance.
Spring web services is pretty nice, and has an easy to use client layer.
http://static.springsource.org/spring-ws/site/reference/html/client.html
There's configuration work you have to do in spring XML or java based config, but once that's done, it's pretty easy:
StreamSource source = new StreamSource(new StringReader(msgText));
StreamResult result = new StreamResult(System.out);
webServiceTemplate.sendSourceAndReceiveToResult(
uri,
source,
result);
The uri parameter is optional (there's a method where you don't need it) if you want to send the message to the default URI for the webServiceTemplate object.
The particular example deals with straight xml, but there's more advanced features for marshalling/unmarshalling objects, security, etc...
I would suggest JDeveloper and ADF.

what is a good java framework for building server applications? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to code a server daemon application that provides some backend functionality. I'd like to stick to Java since I'm pretty familiar with this language and I figure it'd be much easier to just dig into a new framework and not a new language in parallel.
So far I found many promising frameworks, but all of them resemble somehow a webserver. Thing is, I don't want to code a web-application in terms of web-sites so I doubt that I'll need all the webserver-functionality such as templates and this stuff.
What would be a good suggestion for this purpose or would using a regular web-framework such as "play" without the template-stuff be the best choice?
JAX-WS is a standard for creating SOAP web services. Wikipedia link to see what it is about.
For RESTful you would need to make http requests, usually get and post and this type of service works best if you develop a website. From what I understand you don't want this, but still if ever just check the spring framework.
Raw TCP/IP is so much harder and unless you know exactly what you want (performance and optimization wise) you`re better off using a framework.
A webserver is used to implement webservices. A webserver may serve more than html to clients.
I have a personal "stack" using for a long time that is Jetty + RESTEasy and it serves no html at all (only XML and Json).
Javascript + Rest (Glassfish + Jersey for rest). Glassfish – Java EE Full profile certified reference application server (server will used for REST host).

Java Cloud APIs [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm looking to write a Java (Groovy actually) web application that will need to talk to both AWS and Eucalyptus clouds for both compute and storage. So we're looking for a Java library that can talk to both.
I know that Eucalyptus is supposed to be AWS API compatible so anything that talks to AWS should be able to talk to Eucalyptus but that has not been my experience. I've found some of the ec2 command line apps that should work with Eucalyptus but simply crash.
Here's what I'm considering so far:
typica
jclouds
Dasein
AWS SDK for Java
Cloud Foundry
Do anyone have experience using any of these to talk to AWS and Eucalyptus? Are there any other similar APIs out there worth looking at?
Thanks
Since your doing Java/Groovy (Grails?) I would suggest adding CloudFoundry to your short list.
You might want to take a look at libcloud's Java version (original version is in Python): https://svn.apache.org/viewvc/incubator/libcloud/sandbox/java/trunk/. Its development seems to go quite fast and the whole thing looks quite promising.
I would suggest that you write up an API for your cloud engines for your needs, and then use a separate implementation for each backend you want. The reason for this - makes it mockable (hence testable).

sample java applications [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
.NET has codeplex for good sample applications to understand best practices. In Java, the first level of difficulty lies in finding a project with the frameworks you are interested to see implemented. In any case I've been unsuccessful in finding sample applications.
SourceForge.NET has many, but a lot of them are incomplete. Many other samples I find are only covering a CRUD - like Spring web site provides a CRUD, struts 2 provides a CRUD and I found some more here: http://www.learntechnology.net/content/main.jsp
None of them cover an application with decent level of complexity. I'm sure there are such projects, it's just my inability to find them.
Can someone provide the key for the treasure :-)
Edit: I got a comment asking me for specifics, so here it is:
I'm looking for a web application, built with a framework like Struts 2, Spring MVC (any action framework basically), Hibernate / Plain JDBC / JDBC templates in Spring at DAL, and no EJB's please!!
An application like bug tracker, blog template, inventory management etc.. anything that is non-trivial.
a good starting point might be appfuse it is really a sort of boot strap your project kinda thing. Make sure you go for the 'full-source' option at the end of the instructions.
As for features:
Security, with user and admin roles
Sign up
Email templates
How about the Java pet store reference implementation from the J2EE blueprints?
I guess the following link may be useful. It explains how to go about implementing a project using domain driven design
http://dddsample.sourceforge.net/index.html

Categories

Resources