Reputation: 53
How can I create a Vaadin application who consumes a Restful web Services ?
My architecture is:
.parent project
.core-subProject (devlopped with spring )
.ws-subProject (restful web service with jaxb annotation)
.client-project (using vaadin)
thx for help.
Upvotes: 4
Views: 8726
Reputation: 5509
Vaadin is a server-side framework, so there is nothing special here, you would do it as in any other Java application.
See for example this question How to consume REST in Java or this Vaadin forum post.
Basically, you need to create a RESTful URI, open a stream to it and parse it. If the output is XML possibly with something like XStream.
Upvotes: 2