JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS WSDL Editor User's Guide     Java CAPS Documentation
search filter icon
search icon

Document Information

Using the WSDL Editor

Prerequisites for This Tutorial

About the WSDL Editor

Source View

Using Code Completion in WSDL Files

WSDL View

Configuring the Root Element

To Configure the Root Element

Importing XML Schemas Using the WSDL View

To Import an XML Schema

Adding Inline Schemas Using the WSDL View

To Add an Inline Schema

To Configure the Global Properties of the Inline Schema

To Define the Structure of the Inline Schema

Importing WSDL Files Using the WSDL View

To Import a WSDL File

Configuring Messages Using the WSDL View

To Create a Message

To Add a Part to a Message

To Change the Name of a Message or Part

To Delete a Message or Part

Configuring Port Types Using the WSDL View

To Create a Port Type

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

To Delete a Binding

To Undo a Delete

Configuring Services Using the WSDL View

To Create a Binding and Service from a Port Type

To Create a Service Individually

To Delete a Service or Port

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

Adding Documentation

To Add Documentation

Using Find in the WSDL View

To Search for WSDL Components

To Clear Highlights After a Search

Partner View

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

Partner View Layout

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

To Delete an Operation

To Delete a Port Type

To Delete a Role

To Delete a Partner Link Type

Creating Messages Using the Partner View

To Create a Message

To Add a Part to a Message

Editing Messages Using the Partner View

To Change the Name of a Message

To Change the Name of a Part

To Change the Type of Content for a Part

To Delete a Part

To Delete a Message

Working with WSDL Files

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

NCNAME Data Type

Using Refactoring to Rename or Delete WSDL Components

Validating WSDL Files

To Validate a WSDL File

Working with WSDL Files

This section contains the following topics

Creating a WSDL File From Scratch

When you create a WSDL file from scratch, the wizard contains three pages that you can fill out.

You do not need to complete all three pages. You can fill out the Name and Location page and then click Finish, or you can fill out the Name and Location page and the Abstract Configuration page and then click Finish.

To Create a WSDL File from Scratch

  1. In the Projects window, right-click the Process Files node and choose New -> WSDL Document.
  2. In the Name and Location wizard page, do the following:
    1. Enter a name for the file. The name must comply with the rules for the NCName data type.

      You cannot enter a name that already exists in the project.

    2. (Optional) Change the default folder by clicking Browse and selecting the new folder.
    3. Enter the target namespace for the WSDL file.

      The target namespace appears in the root element.

    4. Select the WSDL Type.

      The WSDL types are:

      • Abstract WSDL Document — The abstract type only requires that you fill out the Abstract Configuration page of the wizard.

      • Concrete WSDL Document — The concrete type requires you to select a Binding and a Binding Type. Additional configuration pages are added to the wizard, associated with the binding and type you select.

    5. Click Next.
  3. f you select the Abstract WSDL Document as the WSDL Type, or if you select SOAP/HTTP as the binding for the concrete type, the next page of the wizard is the Abstract Configuration.

    In the Abstract Configuration wizard page, do the following:

    1. Enter a name for the port type.
    2. Enter a name for the operation.
    3. Select the type of operation.
    4. Define the message that the operation receives as input.
    5. If the operation is a request-response operation, then define the message that the operation sends as output.
    6. (Optional) If the operation is a request-response operation, then you can optionally define a message that the operation sends as a fault.
    7. By default, the New WSDL Document wizard generates a partner link type automatically. If you want to create the partner link type manually, clear the Generate partnerlinktype automatically checkbox.
    8. If you select the Abstract WSDL Document as the WSDL type, click Finish. If you select SOAP/HTTP as the binding for the concrete type, click Next.
  4. The HTTP/SOAP Concrete Configuration includes the following settings.
    1. Enter a name for the binding.
    2. Enter a name for the port.
    3. Click Finish.

      The WSDL file is created. The WSDL Editor appears in WSDL view.

Creating a WSDL File Based On an Existing WSDL File

Instead of creating a WSDL file from scratch, you can create a WSDL file based on an existing WSDL file.

To Create a WSDL File Based on an Existing WSDL File

  1. In the Projects window, right-click the Process Files node and choose New -> Other.
  2. In the Choose File Type wizard page, do the following:
    1. In the Categories list, select the XML node.
    2. In the File Types list, select the External WSDL Document(s) node.
    3. Click Next.
  3. In the Specify Resource Location wizard page, do one of the following:
    • To create a WSDL file based on a running service:

      1. Select the From URL button.

      2. Enter the URL of the service's WSDL file.

      3. Click Finish.

    • To create a WSDL file by using an existing WSDL file on the local file system:

      1. Select the From Local File System button.

      2. Specify the folder where the WSDL file is located.

      3. Click Finish.

    The WSDL file is created. The WSDL Editor appears in WSDL view.

NCNAME Data Type

XML Schema includes a data type called NCName.

Any name that has the NCName data type must comply with the following rules:

Using Refactoring to Rename or Delete WSDL Components

You can perform refactoring by using the following approaches:

You can also rename a component by changing the value of the Name property. The WSDL Editor renames all occurrences in the same file, but not in other files.

Validating WSDL Files

The WSDL Editor includes a validation tool. The validation tool reviews the WSDL file for problems with syntax and semantics.

To Validate a WSDL File

  1. Display any of the views in the WSDL Editor.
  2. In the toolbar, click the Validate XML button.

    The Output window displays any errors or warnings.