-
1. Re: Unable to invoke a REST service using Teiid Designer
rareddy Jul 25, 2012 7:48 AM (in response to sarik1837)Sarik,
You need to follow same instrunctions as defined here https://community.jboss.org/wiki/ConsumingWebServicesAsADatasourceInTeiidDesignerJustGotWAYEasier for WSDL. The difference would be on the very first step to import the WSDL, you would use "File Source (XML) >> Source and View Model"
Then create a connection profile based on URL for your REST Service. Once you establish the connection semantics, the Designer wizard can help you create read the xml contents into tabular form.
Ramesh..
-
2. Re: Unable to invoke a REST service using Teiid Designer
sarik1837 Jul 26, 2012 12:50 AM (in response to rareddy)Hi Ramesh,
While going through the procedure, I am getting this again and again
2012-07-26 10:17:13,538 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (Worker12_QueryProcessorQueue34) Creating Service {http://teiid.org}teiid from class org.apache.cxf.jaxws.support.DummyImpl
2012-07-26 10:17:13,538 INFO [org.apache.cxf.configuration.spring.ConfigurerImpl] (Worker12_QueryProcessorQueue34) Could not determine bean name for instance of class org.apache.cxf.jaxws.DispatchImpl.
Due to which I am getting the empty output always.
Could you help me out with this..??
Thnx
-
3. Re: Unable to invoke a REST service using Teiid Designer
rareddy Jul 26, 2012 10:14 AM (in response to sarik1837)Where is error occuring? in Designer or after you deploy the WAR file in the Server? Did you install CXF in Server? See these instructions if you are working Teiid 7.7 http://docs.jboss.org/teiid/7.7.0.Final/admin-guide/en-US/html_single/#d0e119
If you are working with 8.x Teiid the CXF libraries are already installed in Server. However since Designer is not yet upgraded to support 8.x Teiid I am not sure if the generated WAR is fully configured for 8.x deployment, I would need to verify.
Ramesh..
-
4. Re: Unable to invoke a REST service using Teiid Designer
sarik1837 Jul 30, 2012 7:08 AM (in response to rareddy)Hi Ramesh,
Error is occuring while previewing the data. Yes, I have installed the CXF, but still not getting the output from the web service. In the logs it is always saying, "Could not determine bean name for instance of class org.apache.cxf.jaxws.DispatchImpl."
Btw I am using the attached pdf for running the REST based web service. and the links
https://community.jboss.org/people/jdoyle/blog/2010/10/04/modeling-soap-services-with-teiid-designer
for running SOAP based services
If anything is going wrong could you please brief me with the steps required to cleanly run the web service starting from configuring, as this can help me know where I am going wrong as well(if u don't mind).
Thnx
-
consumerest_ws_datasource.pdf 774.8 KB
-
-
5. Re: Unable to invoke a REST service using Teiid Designer
rareddy Jul 30, 2012 12:38 PM (in response to sarik1837)Can you check the server log and see any exception there?
-
6. Re: Unable to invoke a REST service using Teiid Designer
sarik1837 Aug 1, 2012 6:52 AM (in response to rareddy)Hello,
I have again done a complete setup of everything from JBoss AS to CXF ensuring clean setup.Now there are two things :-
1. While I was trying to consume the SOAP based web services (ref - https://community.jboss.org/people/jdoyle/blog/2010/10/15/modeling-soap-services-with-teiid-designer--part-ii),I am getting the data but is returning as NULL and when I debugged my web method(which is just a add function getting i as param and returning 2*i as output) using syso, I am always getting input param as 0 whatever I supplied the input param.
2. While I was trying to consume the REST based web services(ref - attached pdf above),I am getting some Message Transmit error and the logs are attached (logs.txt).
One more question, the pdf i have attached for running the REST based web services and the link for generatinf SOAP based service, is the steps given there are okay or that were missing some steps?
-
logs.txt.zip 1.2 KB
-
-
7. Re: Unable to invoke a REST service using Teiid Designer
shawkins Aug 7, 2012 2:04 PM (in response to sarik1837)1) Where are you seeing NULL?
2) The logs show that you are still using JBoss webservices. That is not expected if CXF is installed properly. The error could be due to JBoss webserives limitation.
You may want to refer specific questions about the pdf over to the designer folks. It will likely also need updated for Designer 7.8.