Home » Archived » BIRT » WebService datasource/dataset against JBoss AS 6/7 generated WebService/WSDL
WebService datasource/dataset against JBoss AS 6/7 generated WebService/WSDL [message #717776] |
Mon, 22 August 2011 10:04 |
Nicklas Karlsson Messages: 34 Registered: July 2009 |
Member |
|
|
Anyone have experiences with using @WebService exposed services with BIRT? I have a simple
@Stateless
@WebService
@Typed({})
public class WebMarelaReportWebService implements WebMarelaReport
{
@Inject
@Lahi
private WebMarelaReport report;
public Raportti haeKulutusraportti(String installaatio, String lahde, String asiakas, String alkaa, String loppuu, String raporttiavain)
{
return report.haeKulutusraportti(installaatio, lahde, asiakas, alkaa, loppuu, raporttiavain);
}
public Kulutusanalyysiraportti haeKulutusanalyysiraportti(String installaatio, String asiakas, String alkaa, String loppuu, String raporttiavain)
{
return report.haeKulutusanalyysiraportti(installaatio, asiakas, alkaa, loppuu, raporttiavain);
}
and I have verified with SoapUI that it works as expected.
I create a WebService datasource and ping it, fine. Then I try creating a dataset against that datasource. I browse down to the "haeKulutusRaportti"-operation and click next but I see no parameters? Any theories? SoapUI detected them fine.
I edit the parameters in and move on. I try the "Use operation response schema defined in the data source WSDL" and go next but in the row mapping I don't see any subelements of the "haeKulutusraporttiResponse". Back
I try the "Use schema from response" and go next and I see a rowmapping that goes to "return" but no subelements.
I grab the SoapUI response and try use that as a sample data but that gives me a "XML data source file is invalid".
So at this time I'm pretty stuck and would love some help (wsdl attached)
-
Attachment: OSTi.xml
(Size: 9.14KB, Downloaded 298 times)
|
|
|
Re: WebService datasource/dataset against JBoss AS 6/7 generated WebService/WSDL [message #717903 is a reply to message #717776] |
Mon, 22 August 2011 16:51 |
|
Are your parameters defined as shown in this article?
http://www.birt-exchange.org/org/devshare/designing-birt-reports/461-birt-web-service-oda-article/
Jason
On 8/22/2011 6:04 AM, Nicklas Karlsson wrote:
> Anyone have experiences with using @WebService exposed services with BIRT? I have a simple
>
>
> @Stateless
> @WebService
> @Typed({})
> public class WebMarelaReportWebService implements WebMarelaReport
> {
> @Inject
> @Lahi
> private WebMarelaReport report;
>
> public Raportti haeKulutusraportti(String installaatio, String lahde, String asiakas, String alkaa, String loppuu, String raporttiavain)
> {
> return report.haeKulutusraportti(installaatio, lahde, asiakas, alkaa, loppuu, raporttiavain);
> }
>
> public Kulutusanalyysiraportti haeKulutusanalyysiraportti(String installaatio, String asiakas, String alkaa, String loppuu, String raporttiavain)
> {
> return report.haeKulutusanalyysiraportti(installaatio, asiakas, alkaa, loppuu, raporttiavain);
> }
>
>
> and I have verified with SoapUI that it works as expected.
>
> I create a WebService datasource and ping it, fine. Then I try creating a dataset against that datasource. I browse down to the "haeKulutusRaportti"-operation and click next but I see no parameters? Any theories? SoapUI detected them fine.
>
> I edit the parameters in and move on. I try the "Use operation response schema defined in the data source WSDL" and go next but in the row mapping I don't see any subelements of the "haeKulutusraporttiResponse". Back
>
> I try the "Use schema from response" and go next and I see a rowmapping that goes to "return" but no subelements.
>
> I grab the SoapUI response and try use that as a sample data but that gives me a "XML data source file is invalid".
>
> So at this time I'm pretty stuck and would love some help (wsdl attached)
|
|
| |
Re: WebService datasource/dataset against JBoss AS 6/7 generated WebService/WSDL [message #717981 is a reply to message #717931] |
Mon, 22 August 2011 22:07 |
|
Thanks for the update
On 8/22/2011 2:35 PM, Nicklas Karlsson wrote:
> Thanks for you reply!
>
> I actually got it working my manually editing in the <arg0/> ...
> <arg5/>. Not sure why SoapUI could detect them from the WSDL where BIRT
> couldn't. I got the rows and columns mapped by saving a SoapUI sample
> response (Save AS, not copy&paste if someone else tries this) and then I
> could see the whole XPath down to the response fields. But BIRT couldn't
> parse this info from the reponse by itself...
|
|
|
Goto Forum:
Current Time: Tue Mar 19 03:38:51 GMT 2024
Powered by FUDForum. Page generated in 0.01909 seconds
|