The Operation Element

The Operation element typically consists of an Input element and an Output element, though they can be used individually and in different orders to support different types of operations. For example, if you are describing

An optional Fault element can be used for error handling in both request-response and solicit response Operation models.

Operation Element Code Sample

The structure of an Operation element might look like this:

     <wsdl:operation name="Operation-0"> 
        <wsdl:input/> 
        <wsdl:output/> 
        <wsdl:fault/> 
    </wsdl:operation> 

How to Create an Operation Element

To create an Operation element:
1. Select the PortType element.
2. Select Diagram > Add > Operation from the Stylus Studio menu.

Alternative: Right-click the PortType element and choose Add > Operation from the shortcut menu.

Stylus Studio adds an Operation element to the WSDL as a child of the PortType element. The default name is Operation-0, but you can change it. Operation names are not required to be unique.

How to Rename an Operation Element

To rename an Operation element:
1. Double-click the Operation element in the WSDL diagram.

The name becomes editable.

2. Type a new name and press enter.

Alternative: Using the Properties window

1. Display the Properties window if it is not already open. (View > Properties).
2. Change the Operation name in the Value field in the Properties window.

Alternative: You can change the Operation name directly in the WSDL text.

Operation Element Properties

The following table describes the properties of the Operation element.

Learn XQuery in 10 Minutes, by Dr. Michael Kay - An XQuery Tutorial

Learn XQuery in 10 Minutes By Dr. Michael Kay is for all those people who really want to know what XQuery is, but don't have the time to find out. It's the fastest XQuery tutorial on the planet - read it now!

Building DataDirect XQuery Applications

Stylus Studio further simplifies relational and XML data integration by providing advanced XQuery tools support for building XQuery applications which use DataDirect XQuery.

JSP Editor

Edit and Validate JSP 1.2 and JSP 2.0 documents. Includes JSP syntax coloring, JSP code completion and more.

Using OASIS XML Catalogs in Stylus Studio

Learn about Stylus Studio's XML catalog support and how to work with XML catalogs in your Stylus Studio XML projects.

Stylus Most Wanted

 
Free Stylus Studio XML Training:
W3C Member