Skip Navigation Links | |
Exit Print View | |
![]() |
Oracle Java CAPS WSDL Editor User's Guide Java CAPS Documentation |
Prerequisites for This Tutorial
Using Code Completion in WSDL Files
Importing XML Schemas Using the WSDL View
Adding Inline Schemas Using the WSDL View
To Configure the Global Properties of the Inline Schema
To Define the Structure of the Inline Schema
Importing WSDL Files Using the WSDL View
Configuring Messages Using the WSDL View
To Change the Name of a Message or Part
Configuring Port Types Using the WSDL View
To Add an Operation to an Existing Port Type
To Add a Fault to a Request-Response Operation
To Change the Name of a Port Type or Operation
To Change the Parameter Order of an Operation
To Delete a Port Type or Operation
Configuring Bindings Using the WSDL View
To Create a Binding and Service from a Port Type
To Create a Binding Individually
Configuring Services Using the WSDL View
To Create a Binding and Service from a Port Type
To Create a Service Individually
Configuring Partner Link Types Using the WSDL View
To Add a Partner Link Type Automatically
To Add a Partner Link Type Manually
Configuring Properties and Property Aliases Using the WSDL View
To Add a Property to a WSDL File
To Add a Property Alias to a WSDL File
Finding Usages of WSDL Components
To Find Usages of a WSDL Component
To Clear Highlights After a Search
Strategies for Defining the Abstract Elements
To Define the Abstract Elements by Starting with the Partner Interactions
To Define the Abstract Elements by Starting with the Messages
Navigating in the Partner View
Creating Partner Link Types Using the Partner View
To Create a Partner Link Type with One Role
To Add a Second Role to a Partner Link Type
To Add a Fault to a Request-Response Operation
Editing Partner Link Types Using the Partner View
To Change the Name of a Partner Link Type, Role, Port Type, or Operation
Creating Messages Using the Partner View
Editing Messages Using the Partner View
To Change the Name of a Message
Creating a WSDL File From Scratch
To Create a WSDL File from Scratch
Creating a WSDL File Based On an Existing WSDL File
To Create a WSDL File Based on an Existing WSDL File
This section contains the following topics
The Partner view of the WSDL Editor represents the abstract elements of a WSDL file as interactions between partners. The abstract elements include partner link types, roles, port types, operations, and messages. A partner link type characterizes the conversational relationship between two services. A role describes the function that a service has in the relationship.
A partner link type can have one role or two roles.
Client/Server — In this type of interaction, the partner link type has one role. The role represents the server. The server can be invoked by one or more unspecified clients.
Peer to Peer — In this type of interaction, the partner link type has two roles. Each role represents a peer service.
A role must specify the port type that the service will use to receive messages. A port type contains one or more related operations that the web service can perform.
The WSDL Editor supports the following categories of operations:
Request-response — Request-response. The operation receives a message as input, and sends a message as output.
One-way — One-way. The operation receives a message as input.
The concrete elements of a WSDL file (that is, bindings and services) describe how to invoke the functionality defined by the abstract elements. Creating a WSDL file that contains only abstract elements is an effective design approach. You can define the concrete elements at deployment time by using the Composite Application Service Assembly (CASA) editor. Thus, if you need to change the bindings at some point, you can do so without modifying the project.
In the Partner view of the WSDL Editor, you can define the abstract elements by starting with the partner interactions or by starting with the messages that are exchanged by the partners.
Note that you can drag the schema elements or types from the Navigator window into the messages.
The Partner view of the WSDL Editor has the following components:
Toolbar — The toolbar is located at the top of the Partner view, just below the tab for the WSDL file.
Partner Link Types area — Contains one configuration box for each partner link type in the WSDL file.
Messages area — Contains one configuration box for each message in the WSDL file.
Palette — Contains partner link type, operation, and message icons. To display the Palette, choose Window -> Palette from the IDE's main menu.
You can expand or collapse the configuration boxes. When a box is collapsed, click the downward arrow to expand the box. When a box is expanded, click the upward arrow to collapse the box.
The IDE's Navigator window provides a compact view of the currently selected file and simplifies navigation between different parts of the file. For WSDL files, the Navigator has two views: WSDL and XML. The WSDL view of the Navigator window is identical to the WSDL view of the WSDL Editor.
To display the Navigator, choose Window -> Navigator from the IDE's main menu.
You can perform the following tasks from the toolbar of the Partner view:
Set the magnification. The lowest magnification is 33 percent. The highest magnification is 200 percent.
To display entire diagram within the viewable area, click the Fit Diagram icon.
To display the width of the diagram fits within the viewable area, click the Fit Width icon.
To set the magnification to 100 percent, click the 100% icon.
To display a predefined percentage of the diagram, select the percentage from the drop-down box.
To display the diagram at a value between 33 and 200, enter the percentage in the drop-down box.
To increase magnification, click the Zoom In icon.
To decrease magnification, click the Zoom Out icon.
Show or hide the partner link types.
Show or hide the messages.
Validate the WSDL file. The validation tool reviews the WSDL file for problems with syntax and semantics. The Output window displays any errors or warnings.
If you right-click a component and choose Go To > Source, then the Source view appears with the cursor positioned at the beginning of the component's block.
If you right-click a component and choose Go To -> WSDL, then the WSDL view appears with the appropriate node highlighted.
After performing an action in the Partner view, you can reverse the action by choosing Edit -> Undo (Ctrl-Z) from the IDE's main menu. You can reverse an undo command by choosing Edit -> Redo (Ctrl-Y) from the IDE's main menu.
You can print the contents of the Partner view by using the IDE's standard print feature.
The Partner Link Types area in the Partner view contains one configuration box for each partner link type in the WSDL file.
A partner link type can have one role or two roles. The first role appears in the right side of the configuration box. If included, the second role appears in the left side of the configuration box.
The role's port type appears below the role. A port type has one or more operations, which are illustrated in the area below the port types. A solid horizontal arrow indicates an input message. A dashed horizontal arrow indicates an output message.
If the operation is a request-response operation, then you can optionally add a fault. A dashed horizontal arrow indicates a fault message. The configuration box resembles a sequence diagram in Unified Modeling Language (UML). Partner link types from imported WSDL files do not appear in the Partner view.
Click Add Partner Link Type.
Drag the Partner Link Type icon from the Palette onto a blank portion of the Partner Link Types area.
Right-click a blank portion of the Partner Link Types area and choose Add PartnerLinkType.
The configuration box for the partner link type appears. The partner link type contains a default role.
The Partner Link Types area in the Partner view enables you to modify or delete the partner link types, roles, port types, and operations in a WSDL file.
This procedure will rename all occurrences in the same WSDL file. If you want to rename all occurrences in the same WSDL file and all associated XSD, WSDL, and BPEL files, then right-click the component and choose Refactor > Rename.
To delete an operation do one of the following:
Select the operation and press Delete.
Right-click the operation and choose Delete from the pop-up menu.
To delete a port type do one of the following:
Select the port type and press Delete.
Right-click the port type and choose Delete from the pop-up menu.
The port type area of the configuration box is changed to an unconfigured state.
To delete a role do one of the following:
Select the role and press Delete.
Right-click the role and choose Delete from the pop-up menu.
The role area of the configuration box is changed to an unconfigured state.
To delete a partner link type do one of the following:
Select the configuration box for the partner link type and press Delete.
Right-click the configuration box for the partner link type and choose Delete from the pop-up menu.
The Messages area in the Partner view contains one configuration box for each message in the WSDL file.
In a WSDL file, a port type contains one or more related operations that the web service can perform. An operation receives a message, sends a message, or does both.
Each message contains one or more logical parts. For each part, you must specify the name and the type of content.
Click Add Message.
Drag the Message icon from the Palette onto a blank portion of the Messages area.
Right-click a blank portion of the Messages area and choose Add Message.
The configuration box for the message appears. The message contains one part. The part's type of content is undefined.
In the Part Element or Type column, click the ellipsis (...) button. Select any of the built-in types in W3C XML Schema. If you added an inline schema or imported a schema, then you can select an element or type from the schema. Click OK.
Drag an element or type from the Navigator window onto the Part Element or Type column.
Click Add Part.
A new row appears. The type of content is set to xs:string.
Right-click the configuration box for the message and choose Add Part from the pop-up menu.
A new row appears. The type of content is undefined.
Drag an element or type from the Navigator window onto the configuration box for the message, and above or below an existing row.
A new row appears. The type of content is set to the element or type that you selected.
The Messages area in the Partner view enables you to modify or delete the messages in a WSDL file.
This procedure will rename all occurrences in the same WSDL file. If you want to rename all occurrences in the same WSDL file and all associated XSD, WSDL, and BPEL files, then right-click the component and choose Refactor -> Rename.
This procedure will rename all occurrences in the same WSDL file. If you want to rename all occurrences in the same WSDL file and all associated XSD, WSDL, and BPEL files, then right-click the component and choose Refactor > Rename.
To change the type of content for a part do one of the following:
In the Part Element or Type column, click the ellipsis button. Select any of the built-in types in W3C XML Schema. If you added an inline schema or imported a schema, then you can select an element or type from the schema. Click OK.
Drag an element or type from the Navigator window onto the Part Element or Type column.
To delete a part do one of the following:
Select the part and press Delete.
Select the part and click Remove Part.
Right-click the part and choose Delete from the pop-up menu.
To delete a message do one of the following:
Select the configuration box for the message and press Delete.
Right-click the configuration box for the message and choose Delete from the pop-up menu.