By Marone: October 2017

JAXWS top-down approach


This article describes how to develop JAX-WS web service With Top-Down approach (contract first). We need a WSDL and only API and JAX-WS to test this way.

Used technologies

JDK 1.8
Eclipse (we will create a java project from wizard)


At first we will structure our wsdl file in three sections:

I) XML schema (TutorialService.xsd)

II) Abstract wsdl (TutorialServiceAbstract.wsdl)

III) The concret wsdl (TutorialService.wsdl)

Project structure

java project structure

Generate Code

The generated files:
generated files

Implementing the Service

Warning! To avoid some trouble use endpointInterface = ""

Let's start

Check the url