Book Image

Mastering Netbeans

5 (1)
Book Image

Mastering Netbeans

5 (1)

Overview of this book

Table of Contents (17 chapters)
Mastering NetBeans
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating RESTful web services


In addition to creating and consuming SOAP-based web services, NetBeans also provides sophisticated tools to create and consume RESTful web services. As with a SOAP-based web service, RESTful web services need to be deployed within a web application.

You'll remember from earlier in this chapter that for RESTful web services, we can choose to create from entity classes, patterns, and database tables. Creating RESTful web services is much simpler than SOAP-based web services as all that is required to create the RESTful service is the base entity or database table; we do not need to worry about WSDL file, we simply need to state the source of the data that we wish to expose as a RESTful web service.

Creating a RESTful service for an entity or database table is essentially the same procedure. For each of these cases, a set of @Entity or database tables is selected and then a set of RESTful web services are created to manage the lifecycle of the entities.

For each...