Home » Middleware » Oracle Workshop for WebLogic: Create WSDL (Web Service Definition Language)

Oracle Workshop for WebLogic: Create WSDL (Web Service Definition Language)

WSDL Definition anf Overview

WSDL (Source: en.wikipedia.org)

WSDL (Web Service Definition Language) is an important part of Web Service. WSDL is an XML format for describing network services as a set of endpoints operating on messages containing either document-oriented or procedure-oriented information [W3 definition of WSDL]. In the simple term, Web Services Description Language is an XML-based language that is used for describing the functionality offered by a Web service [WikiPedia definition of WSDL]. WSDL is a document written in XML which describes a Web service, specifies the location of the service and the operations (or methods) the service exposes [W3 School definition of WSDL].

WSDL files are used as an information communication interface between web service providers and consumers. A WSDL description which contains input and output specifications allows a client to utilize a web service’s capabilities without know implementation details and complex process of the web service.

Create WSDL in Oracle Workshop for WebLogic

In previous tutorial, we have been creating project and directory structure for SimpleCalculator. Now we will create a WSDL for this web service. Right click from directory “WSDL” choose NewOther

New WSDL

New WSDL

Choose “WSDL” in tree of project type.

Project Type

Project Type

Select WSDL folder as location of resource which will be created. Supply file name for this wsdl. Name for this resource is SimpleCalculatorService.wsdl

WSDL Name

WSDL Name

Default value for WSDL attributes are enough for this tutorial.

WSDL Attributes

WSDL Attributes

First step is change operation name for this web service. Click on operation name (star icon), and change the name to be “Add”.

Change Operation Name

Change Operation Name

Edit input schema for this operation. Click Right arrow in the right of [Input – parameters - add]. A new tab of Inline Schema of SimpleCalculatorService.wsdl will be open. Point your cursor to first element named in with string data type. Change the name of element via Element Properties box. The name of element will be ANumber. Don’t forget also to change type to xsd:int.

Change Field Name and Type

Change Field Name and Type

Right click ANumber, choose Add Element.

Add Element

Add Element

New Element will be added after ANumber. Change also the name and type become BNumber and type xsd:int. Save your work and close Inline Schema tab.

New Element Result

New Element Result

Repeat above step to change output/response of wsdl become result and data type xsd:int.

Response Element

Response Element

Finally, WSDL for SimpleCalculator ready to utilize. In the next tutorial, we will develop business and proxy service which implement this WSDL.

Incoming search terms: