# Creating an import statement

The import statement is used to import other WSDL documents or XML schemas into your WSDL document. This enables you to have more modular WSDL documents. The use of the import statement allows the separation of the different elements of a service definition into independent documents, which can then be imported as needed. This technique helps in writing clearer service definitions, by separating the definitions according to their level of abstraction.

To create an import statement, complete the following steps:

1. In the Outline view, right-click the Imports folder and click Add Import. Select your new import statement.
2. In the Properties view, click the General pane.
3. Click the icon to the right of the Location field to open the Select File window..
4. Select a WSDL file or XML Schema to import by doing one of the following:
   - Select a file from another project in the workspace in the Workspace Files section.
   - Click Import Files and then Browse to find and select files outside the workspace. Click Finish after completing this Import wizard.
   Click OK.
5. Type any information about the import statement you want the user to read in the Documentation pane.

Once you specify the location of the document you wish to import, the import object's label changes to reflect the specified location. Imported WSDL components may now be visible within the editor.
Related concepts
Editing WSDL files with the WSDL Editor
Related tasks
Creating a new WSDL file
Editing WSDL files