2 Replies Latest reply: May 17, 2011 9:08 AM by Scott Dawson RSS

Create Web Service menu item

Scott Dawson Apprentice

My development setup is Eclipse Helios 3.6.2, Teiid Designer 7.3, Sun JDK 1.6. I am trying to use Teiid to expose data stored in a database via a web service and I'm trying to follow the steps in the Teiid Portfolio Web Service example. In the example, the web service model is provided. I need to create one. There is a menu option shown in the readme file: Modeling / Create Web Service -- available by right-clicking on a model in the Model Explorer. I don't have that menu option. Is that because I installed Teiid Designer into a stock Eclipse and not JBoss Tools (or JBDS)? Is there some way to enable it in my Eclipse + Teiid Designer environment? Alternatively, is there some other way I can create a web service model? I'm assuming I need a WS model to expose my data via a web service.

 

Thanks,

Scott

  • 1. Create Web Service menu item
    Ted Jones Apprentice

    Scott,

     

    It should not matter how you run Designer (standalone, JBT, JBDS), the option to create a web service should be available for any physical/virtual model. Are you seeing any errors in Eclipse?

     

    You are correct with your assumption that web service models are needed to expose your data as a web service. With regards to other ways to create web service models, you can use the File->New->Teiid Metadata Model and choose Web Service as the Model Class. Then you can model operations, inputs, and outputs. Finally, you can add your virtual procedures to the web service operation transformation.

     

    Thanks,

    Ted

  • 2. Create Web Service menu item
    Scott Dawson Apprentice

    Ted,

    I've discovered that I have the 'Modeling / Create Web Service' menu option when I drill down to the individual tables but not up at the model level. I've also used the workaround you suggested, creating a Metadata Model and specifying Web Service as the Model Class. I can do what I want to do now using those two mechanisms. I'm having problems with the generated web service app but that's a different topic so I plan to start a new thread for that discussion.

     

    Thanks for your help,

    Scott