Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JavaFX and the fly likes JavaFx and RESTFul services Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JavaFX
Bookmark "JavaFx and RESTFul services" Watch "JavaFx and RESTFul services" New topic
Author

JavaFx and RESTFul services

Nikes Shah
Ranch Hand

Joined: Jul 18, 2007
Posts: 133
Hello all,

What type of data can be processed using JavaFX? Is it compatible with RESTFul services?

If I get response in JSON format, how can I parse it?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60783
    
  65

There are many JSON parsers out there. Why do you think it'd be any different than in any other Java application?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Gail Anderson
Author
Ranch Hand

Joined: Jul 07, 2009
Posts: 44
Hi Nikes,

Good question. JavaFX supports RESTful web services with class HttpRequest and parsing with pull parser classes for JSON and XML. Our book shows you how to use this technology (Chapter 9: Web Services) and ends with a cool animated carousel displaying photos from flickr. No need to dip down into Java for this.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60783
    
  65

Now that's cool!
Nikes Shah
Ranch Hand

Joined: Jul 18, 2007
Posts: 133
Thanks all for quick reply

Actually I am doing R&D on one opensource ECM product "Alfresco".

In this product there is new type of API called WebScripts. It supports calling mechanism like URL.
Alfresco people say that RESTFul access is faster than others.

Our company wants to develop some custom web app which talks with Alfresco.

So just thinking JavaFX and RESTFull api of Alfresco combination.

Thanks,
Nikesh

Eric Bruno
author
Ranch Hand

Joined: Jun 15, 2009
Posts: 60
Also, the book "JavaFX: Developing Rich Internet Applications" has an entire chapter dedicated to JavaFX and REST, including using XML and JSON-based web services. You can check this out here: http://www.informit.com/store/product.aspx?isbn=013701287X

Also, you can find sample code for all of this at www.jfxbook.com

-Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JavaFx and RESTFul services
 
Similar Threads
Restful web services in Java
JAX-WS - WSDLS - Where are they?
RESTFUL Web Services
RESTful web services
Cosuming RESTful services in Flex