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 the WSDL


A WSDL describes a set of business operations. The WSDL HelloWSService.wsdl for the sample web service defines an operation "hello" that takes an input parameter and returns a response. The HelloWSService.wsdl used in this chapter has elements that are discussed in the following table:

Element

Description

message

Describes input and output parameters and return values.

types

Describes the schema (HelloWSService_metadata1.xsd) for the XML types used in the messages.

portType

Describes the operations and associated messages. Defines abstract operations. portType is HelloWS and operation(s) are hello.

binding

Binding HelloWSPortBinding describes the protocol used to access a portType. Also describes the data formats for the messages defined by the portType element.

service

Service HelloWSService describes the web service and a list of ports.

port

Port HelloWSPort describes the location of the web service http://localhost:8080/clientjar/hellows?wsdl

and...