-
1. Re: Designer - define web service model from wsdl
tejones Dec 23, 2010 11:20 AM (in response to colo)Nicolas,
If you have a view model, you can right-click on the view model then select Modeling->Create Web Service. This will generate all the artifacts required for the web service including some default transformations.
If you import wsdl to create your models, then you will need to add the transformations. Here are some articles that may be of some help: http://community.jboss.org/wiki/CreatingandDeployinganUpdateableTeiidWebServiceWar
http://community.jboss.org/wiki/GeneratingaJBossWS-CXFWarFromWebServiceModelsinTeiidDesigner
Here is the user guide: http://docs.redhat.com/docs/en-US/JBoss_Developer_Studio/4.0/pdf/Teiid_Designer_User_Guide/JBoss_Developer_Studio-4.0-Teiid_Designer_User_Guide-en-US.pdf
Let me know if you run into issues...
Thanks,
Ted
-
2. Re: Designer - define web service model from wsdl
colo Dec 24, 2010 11:41 AM (in response to tejones)Maybe I expressed myself not very well.
I want to build a VDB from a WS I published. For that do:File ->Teiid New Model ProjectFile ->Import -> WSDL into Web Service ModelFile ->Teiid New Model Project
File ->Import -> WSDL into Web Service Model
(Choose the model name and URL)
And then keep all the default settings as they are. The WS has asingle operation, which receives a string and returns a string, just to prove .The point is that after the creation of the model there are two errors, these errors are due for there not defined transformations. One of the transformations corresponds to the operation defined in the interface, and the other is inside something called Mapping Diagram, that don't know how define it, and from that source... Have to define a procedure works as source to call the web service? Wich is the way?
Really thanks, and merry christmas!
Regards
Nicolás
-
3. Re: Designer - define web service model from wsdl
tejones Jan 3, 2011 10:52 AM (in response to colo)Nicolas,
Sounds like you are on the right track. The transformations for the mapping class and the web service operation are not auto-generated and need to be defined by you. Start with the mapping class transformation. The result of that transformation will be the input source for the web service operation. There is an input set available to the mapping class transformation to provide filter criteria. In the transformation for the web service operation you can add any reuqired qualifiers as input arguments to the web service operation. You will need to define the input schema if you require input into a web service operation. The docs I pointed you to should be enough to get you started. If you would like to post your wsdl I would be glad to take a look and give you some example transformations.
It should be noted that we have other means of exposing web services as sources to Teiid. See the "WSDL to Relational Source Model" as well.
Merry Christmas to you as well and please keep us posted on your progress. Don't hesitate to ask if you need more direction.
Thanks,
Ted