Web services have a description language known as WSDL, which is used to describe in a nutshell what the web service does and gives the client all the information required to connect and use the web service
There are two types of WSDL files, They are Abstract WSDL, Concreate WSDL.
Abstract WSDL will be created at design time where as Concrete WSDL will be created after the deployment. Concrete WSDL includes <Binding> and <Service> elements which are not present in abstract WSDL.
- wsdl: types
- wsdl: message
- wsdl: portType
- wsdl: binding
- wsdl: service
Types: Defines the (XML Schema) data types used by the web service. eg : Employee XML element data type is defined under types.
Messages: Defines the data elements for each operation. eg CreateEmployeeRequest , CreateEmployeeResponse.
PortType: Defines the operations (functionalities) and messages that this web service provides. Eg. Operation – createEmployee , input – CreateEmployeeRequest, Output – CreateEmployeeResponse is defined in this section.
Binding: Defines the protocol and data format. SOAP binding of the webservice is providing here. Other bindings are ftp, jca etc..
Service: Provides the location (endpoint) where this service is available. https://soadev.orgA.com/services/EmployeeService
Sample WSDL File: