A Service Endpoint Interface is required if a Web service is invoked or if a Web service is created from WSDL. Create the Service Endpoint Interface from WSDL.
Creating the Service Endpoint Interface
From the [New] wizard, select [Web Services] > [Web Service(JAX-WS)]. The wizard creates the Service Endpoint Interface and so on.
Refer to the following concerning the Web service (JAX-WS) wizard.
WSDL file name
Specify the WSDL file. Either a URL or a local file location can be specified.
When a client that invokes a Web service is being created, and if the WSDL does not need to be held as a development resource, the URL of a published WSDL can also be specified. Conversely, if the Web service is created from the WSDL, and if the WSDL is held as a development resource, a local file can also be specified.
Point
The WSDL file specified in the Web service (JAX-WS) wizard and XML Schema file referred by WSDL file are automatically obtained from the reference destination, and copied to "wsdl" folder under the project. The copied WSDL file is for reference use, therefore do not define it in the Web service (JAX-WS) wizard.
Note
In the case below, a WSDL inspection error may occur on the WSDL file which was obtained through Web service (JAX-WS) wizard and copied in the project.
Obtaining a WSDL file by executing Web service (JAX-WS) wizard, updating Web service application (such as adding a service), and then obtaining the updated WSDL file by executing Web service (JAX-WS) wizard again.
In this case, the XML Schema file referred by the WSDL file is registered in the workbench cache when obtaining the first WSDL file. If the updated WSDL file is obtained by executing Web service (JAX-WS) wizard again, then the inspection is performed using the cached XML Schema in this WSDL inspection, and therefore an error occurs due to mismatching between the WSDL file and XML Schema.
To solve this issue, follow the procedure below:
From workbench menu, select [Window] > [Preferences].
The [Preferences] dialog box is displayed. Select [General] > [Network Connections] > [Cache].
The [Cache] page is displayed. From [Cache entries], select the XML Schema file referred by the WSDL file, and click [Remove].
From workbench menu, select [Project] > [Clean].
The [Clean] dialog box is displayed. Select the project which the error is happening, then click [OK].