8.6. Create a New Web Service View Model
8.6. Create a New Web Service View Model Important Please note that Web Service View Modeling has been deprecated. 8.6.1. Create a New Web Service View Model To create a new empty web service view model: Launch the New Model Wizard . Specify a unique model name. Select Web Service option from Model Class drop-down menu. Select View Model from Model Type drop-down menu. Click Finish . Note You can change the target location (i.e. project or folder) by selecting the Browse... button and selecting a project or folder within your workspace. In addition to creating a new empty web service view model, the following builder options are available: Copy from existing model of the same model class. Build from existing WSDL file(s) or URL. 8.6.2. Copy an Existing Web Service View Model This builder option performs a structural copy of the contents of an existing model to a newly defined model. You can choose a full copy or select individual model components for copy. To create a new Web Service view model by copying contents from another web service view model, complete first 4 steps from the Create a New Web Service View Model section and continue with these additional steps: Select the model builder labeled Copy from existing model of the same model class and click > . The Copy Existing Model dialog will be displayed. Select an existing Web Service view model from the workspace using the browse button. Select the Copy all descriptions option if desired. Click Finish . 8.6.3. Create a Web Service View Model from a WSDL File or URL This builder option creates a Web service model based on a user defined WSDL file and its referenced schemas. In addition, applicable XML schema files and XML View document models (optional) are created. To create a new Web Service View Model, complete first 4 steps from the Create a New Web Service View Model section and continue with these additional steps: Select the model builder labeled Build from existing WSDL file(s) or URL and click > . Complete the steps in the wizard. The remaining steps are the same as the process covered in Import WSDL Into Web Service at Section 9.10.1, "Import WSDL Into Web Service" . 8.6.4. Create a Web Service View Model from XML Document View Models Web Service models and their corresponding Interfaces and Operations can be generated in Teiid Designer from XML View model components. Namely, XML View Documents and XML View Document roots. To create a new Web service model from XML components: Select either a single XML Document or single XML Document root in the Model Explorer View. Right-click select Modeling > Create Web Service action . Fill in missing properties in Web Service Generation Wizard . Click Finish to generate model. When model generation is complete, a confirmation dialog is displayed. Click OK . Note Users can change the Web Service Model and Interface Name values (via "..." buttons) to use existing Web service model components. This will create a new operation in an existing model.