![]() |
|
|||||||
| BI Platform BI Server (PCI), Pentaho User Console, Admin Console, Solutions, Design Studio, xactions... |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I have data, that can be extracted from the application only by using webservices. Can i create a actionsequence that acts as a webservices client and retrieve the information for the report?
If yes, how should this be done? Any documentation available? |
|
#2
|
|||
|
|||
|
Have you looked at any of the XQuery example action sequences? Instead of a local file, the resource can be specified as a URL.
|
|
#3
|
|||
|
|||
|
I modified the XQ_Datasource.xaction example. I changed the source type to url and have set the location to "http://m030:8080/pentaho/ServiceActi...itles.xaction"
The CurrentPositionTitles.xaction is the one used in the webservices example and returns an XML message. As soon as i run it i get the following message : "Error: File not found: http://m030:8080/pentaho/ServiceActi...Titles.xaction (org.pentaho.plugin.xquery.XQueryLookupRule)" It looks to me that the program is still expecting a file. Even if the above would be returning the result expected, i still have a problem specifying the correct URL. The webservices i need to access are not accessible by a url like the one used here(as far as i know). These webservices are built using the axis framework and, as far as i know, need some clientsoftware based on the wsdl file. http://forums.pentaho.org/archived_a...source.xaction |
|
#4
|
|||
|
|||
|
Try something like this in the resource definition:
Code:
<document> <url> <location>http://someserver.something.com/some...jsp</location> <mime-type>text/xml</mime-type> </url> </document> |
|
#5
|
|||
|
|||
|
I tried with this :
location= http://www.belgium.be/eportal/index.jsp but the error is still the same. Error: File not found: http://www.belgium.be/eportal/index.jsp (org.pentaho.plugin.xquery.XQueryLookupRule) When creating tri message i wanted to include some xml. I did put it in a code block, but all my tags disappeared. What is the trick to make it work line in your previous mail? Post edited by: begunrom, at: 05/31/2006 04:18 |
|
#6
|
|||
|
|||
|
I had the same problem. Had to use html entities instead of less than and greater than signs.
< = less than > = greater than I just cut and paste the xml to notepad and did a find replace. steve |
|
#7
|
|||
|
|||
|
A couple of things:
1- Your above example returned an HTML document, not an HTML page. That won't fly. 2- I looked at your action sequence example, and you have the following URL: http://m030:8080/pentaho/ServiceActi...Titles.xaction You will need to double-escape the ampersand because it's being specified in XML and will be stripped out otherwise: It will look something like this: http://m030:8080/pentaho/ServiceActi...Titles.xaction If this doesn't work, please re-attach the action sequence you're working on as well as the server error log. To do this, build a .zip file and attach it. I hope this helps, Marc |
|
#8
|
|||
|
|||
|
It is still not working. As requested, i have included the boot.log, server.log and the xaction in a zip file. http://forums.pentaho.org/archived_a...webservice.zip
|
|
#9
|
|||
|
|||
|
It seems the forum post stripped off the sample I was trying to provide. I'll see if I can get it right here. There may be multiple edits until I get it looking right on review. ;-)
Code:
<location>http://m030:8080/pentaho/ServiceActi...ion</location> I hope this helps, Marc Post edited by: mbatchelor, at: 06/01/2006 10:14 |
|
#10
|
|||
|
|||
|
The & problem has gone, but the file not found error is still there. In the server.log, i do not see any difference in URL anymore.
For your reference i included again the server.log and the action in server1.zip http://forums.pentaho.org/archived_a...es/server1.zip Post edited by: begunrom, at: 06/01/2006 11:52 |
![]() |
| Thread Tools | |
| Display Modes | |
|
|