JavaFX application to expose Webservice - java

I am new to Web service, and have a JavaFX desktop application running client-side.
I am planning to create an Android application that will call the web service exposed by the desktop application. Any suggestions on how to do this? Tutorial links would be helpful.

I know you are new to webservices, but please go through some documentations first ! You may find a nice tutorial here
A short introduction to Web Services
Just to give you a brief idea on what is wrong with your question. Javafx Desktop application and an android application are both basically clients (who consume web servcies).
You need to have a Server (who exposes web services) hosting a web application, so that these clients can use it. Your webapplication build in java, php, asp etc. The language doesn't matter in case of webservices !

Related

Swing Application as server to host web services

I have swing application. Basically I have used "floreant pos" and have customized based on my requirement. Now I want to the same operation what I do from my swing application but in the form of Rest web service.
When I start my swing application, there must be web services available to access from mobile app.
I need to use same predefined methods for the web services.
Simply it's a application as a server.
Above are the requirements, not sure how I can achieve it. Moreover, I need some details of "floreant pos" plugin architecture that they have released in 1.4 version so can anyone help on plugin architecture understanding of "floreant pos"..
Website :- http://floreant.org/
Wiki :- http://wiki.floreantpos.org/
I have been stuck for a long time. Please provide me some solution.
Thanks in advance

Implementing a web service orchestration with BPEL in java and eclipse

I've been reading a lot of different tutorials for creating web services, but none of these could help me create a web service with a BPEL orchestration of web services.
How can I implement a java program that uses a BPEL orchestration to keep track of the web services being used and how can I communicate with these in the best way?
I am new to SOA, BPEL and so on so this question might seem dumb, but is the BPEL (document/code) supposed to be located at the server (web service) or at the client side?
If anyone could help me out or maybe show me some good tutorials on this topic, I would really appreciate it.
Any help will be greatly appreciated.
Bpel code is located at server side.
You could create a java program which access your bpel process, after exposing it like a web service.
Example:
http://www.oracle.com/technetwork/articles/matjaz-bpel1-090575.html
But there are better options for orchestration, like Oracle Service Bus.

General Java Web App

I have a client server setup. I need my client to be able to call the server, and the server pass down either a file or the text contained in the file. I am new to web development. Which type of technologies should I investigate. I know that Java Web Services, Java Servlets, Java EE Applications all exist. But which one would be best for my uses? The server side application must be Java and run in Apache Tomcat.
Any suggestions would be greatly appreciated.
Thanks
Check out the Google Web Toolkit
Try Restlet in combination with Jetty container, but it works with any container (including Tomcat). Here is where you can start.
Restlet can be used for both desktop or in-browser web apps. Also it nicely integrates with Google Web Toolkit.

Creating Java Web Service using Google AppEngine

I'm trying to create a simple web service application where I can retrieve a collection of strings and store them into a data store on the AppEngine server.
I have knowledge in Java and barely any knowledge of Java Servlets and its WAR standards.
I would like to at least have some direction on how to create a web service using the Java technology AppEngine provides. I've searched but the articles are sparse and too lengthy while not providing any simple solutions.
I'd love it if I can create a web service using Java's annotations just like you can do in .NET with attributes.
I'd appreciate links to articles and guidance a full source answer is not required but would be appreciated.
No python based answers please.
IMO, there is no simple solution to build a Web Service on GAE with Java.
But, it's still achievable. Let's start with the Web Services we want to build.
In common usage the term refers to
clients and servers that communicate
over the Hypertext Transfer Protocol
(HTTP) protocol used on the web. Such
services tend to fall into one of two
camps: Big Web Services and
RESTful Web Services.
"Big Web Services" use SOAP/RPC format and RESTful Web Services use REST style one. You can read more about SOAP vs REST.
There are lots of Java open source Web Services frameworks out there. Most of them are generally based on the Java API for XML Web Services (JAX-WS), part of the Java EE platform.
JAX-WS is not supported by Google App Engine as specified in the list Will it play in App Engine. So forget about the "cool Java's annotations".
But, Restlet seems compatible with GAE. So if you think REST could be an option for you, I would go ahead and take a look at the Hello World tutorial of Restlet. Then, I'd go ahead and read the article on how to integrate Restlet with GAE.

How to build a web based chat application similar to gmail using java at backend logic

Hii,
I want to built a web based chat using j2ee at backend logic.i want to implement the similar way the gmail do,so that performance of application doesnr degrade.please suggest what type of architecture shoul i follow.load of application would be high.
Use what Google used: GWT. They spent years on making it fast and easy to use.
The Jetty web container has a demo chat application which uses Ajax as the gmail chat does and which is not too complicated to learn.
It appears somebody has a Jetty running on http://64.164.6.244:9090/test/chat/chat.html, so you can see what it looks like before downloading and running it yourself.

Categories