Book Image

Java 7 JAX-WS Web Services

By : Deepak Vohra
Book Image

Java 7 JAX-WS Web Services

By: Deepak Vohra

Overview of this book

<p>Web services are applications that use open, XML-based standards and transport protocols to exchange data with clients. <br /><br />In the book Developing a JAX-WS Web Service using the wsimport clientjar Option, we shall create a JAX-WS web service with Java 7. We shall discuss the new clientjar option in the wsimport tool or the wsimport ant task which is used to generate JAX-WS portable artifacts from a service wsdl. Subsequently, we use the web service artifacts to invoke the web service from a web service client.</p>
Table of Contents (8 chapters)

Creating a NetBeans project


A JAX-WS web service essentially consists of a Java class annotated with the javax.jws.WebService annotation—the web service endpoint. A web service may optionally consist of a Service Endpoint Interface (SEI) that is implemented by the service endpoint implementation class. A web service implementation class must not be abstract or final. Business methods of the implementation class that are to be exposed as operations to a web service client must be public, must not be static or final, and must be annotated with the @WebMethod annotation. In NetBeans IDE select File | New Project to create a new project. In the New Project wizard, select Java in Categories and Java Application in Projects, and click on Next:

Note

Downloading the example code

You can download the example code fles for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register...