A WSDL describes a service as a set of endpoints, operations, and SOAP messages, and is required to invoke a web service. Next, we shall generate a WSDL from the web service. Right-click on HelloWSImpl.java in Project Explorer and select WebLogic Web Services | Generate WSDL, as shown in the following screenshot:
Select the directory to generate the WSDL in the hellowebservice folder. Click on OK, as follows:
The jwsc task runs to generate web service artifacts, which we will discuss later.
The WSDL HelloWSService.wsdl
gets generated. Right-click on the WSDL file and select Open With | WSDL Editor. The WSDL diagram is shown in the following screenshot. Copy the web service URI (http://localhost:7001/HelloWebService/HelloWSService?WSDL
), which we have copied earlier from the web service test client, into the HelloWSPort field in the Design view of the WSDL, as shown in the following screenshot:
The web service URI may also be copied in the Source view to the soap:address
element...