9.9. Import WSDL into Relational Models
9.9.1. Import WSDL into Relational Models
- In Model Explorer, right-click and then click Import... or click the File > Import... action
in the toolbar or select a project, folder or model in the tree and click Import...
- Select the import option Teiid Designer > Web Service Source >> Source and View Model (SOAP) and click Next>.
- On the next page select an existing Web Service Connection Profile from the list, or click the New button to create a new profile.

Figure 9.37. WSDL Source Selection
- Select individual Web Service Operations to model. The default behavior of this page selects all available operations in the tree. Operations can be deselected if they are not being modeled. The Selection Details panel displays static information about the operation such as the names of the input and output messages, and faults thrown by the operation.Click Next >.
- The next page entitled Model Definition requires both a model location (i.e. folder or project) and a valid model name for both source and view models. Use the Browse... button to select existing folders or models. Click Next> when all the information is defined.

Figure 9.38. WSDL Source Selection
- On the next page enter the JNDI name and click Next >.
- On the next page choose whether the User-specified Procedures or Default Procedures should be created and click Next >.
Note
If the Default Procedures option is selected, the Finish button is available instead of Next > button. - This wizard generates both request and response procedures that are used in the queryable wrapped procedure. The next page, Procedure Definition, provides the means to define the details of your request and response structures.In the Request tab, select and double-click the schema elements you wish to be input parameters for your request. These will be added to the Element Info panel and the resulting generated SQL statement will be updated to reflect the new element. Note the BODY and HEADER tabs which exist on both the Request and Response tabs. If the selected service mode for this procedure is set to MESSAGE, the HEADER tab will be enabled and allow you to define the SOAP header variables utilizing the same schema tree.Select the Response tab and create the response procedures result set columns in the same way.Repeat this process for all operations by changing the selection target operation via the Operations selector at the top.

Figure 9.39. Procedure Definition Page
- Click Finish. After generation the new models can be found in the specified location in your workspace.
9.9.2. Circular References in WSDL Schemas
StackOverFlow exception and exiting of the application.
WsdlSchemaHandlerRecursiveDepth to a larger value, for example, -D WsdlSchemaHandlerRecursiveDepth=800. This should only be used with caution as on some systems it is possible the JVM throws a StackOverFlow exception before the new depth limit is reached.

Figure 9.40. Warning message displayed if depth limit has been reached

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.