Web Services Description Language (WSDL) is an XML based interface definition that is used to describe the functionality offered by a web service. The WSDL file contains a machine-readable description on all the details of a web service, which includes:
When a developer updates a web service that in-turn affects the respective SOAP API, he/she needs to ensure to regenerate the corresponding WSDL file:
CloudControllerService.wsdl
AutoScalerService.wsdl
As the Java2WSDL plug-in has been added to Apache Stratos, developers can now seamlessly generate a WSDL without deploying the component into the server.
Follow the instructions below to regenerate a WSDL file based on the Java source:
target/generated-resources/wsdl
directory.Copy the WSDL file into the respective service stubs directory.
Component | Service stubs folder path |
---|---|
CC | /stratos/service-stubs/org.apache.cloud.controller.service.stub/src/main/resources |
AS | /stratos/service-stubs/org.apache.stratos.autoscaler.service.stub/src/main/resources |