Pentaho Community Forums

Go Back   Pentaho Community Forums > Pentaho Users > BI Platform

BI Platform BI Server (PCI), Pentaho User Console, Admin Console, Solutions, Design Studio, xactions...

Reply
 
Thread Tools Display Modes
  #1  
Old 05-29-2006, 06:10 AM
begunrom begunrom is offline
Senior Member
 
Join Date: Jan 2006
Posts: 285
Default actionsequence as webservice client

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?
Reply With Quote
  #2  
Old 05-29-2006, 02:08 PM
mbatchelor mbatchelor is offline
Pentaho Chief Architect
 
Join Date: Nov 1999
Posts: 570
Default Re:actionsequence as webservice client

Have you looked at any of the XQuery example action sequences? Instead of a local file, the resource can be specified as a URL.
Reply With Quote
  #3  
Old 05-30-2006, 08:05 AM
begunrom begunrom is offline
Senior Member
 
Join Date: Jan 2006
Posts: 285
Default Re:actionsequence as webservice client

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
Reply With Quote
  #4  
Old 05-30-2006, 09:38 AM
mbatchelor mbatchelor is offline
Pentaho Chief Architect
 
Join Date: Nov 1999
Posts: 570
Default Re:actionsequence as webservice client

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>
Reply With Quote
  #5  
Old 05-31-2006, 12:14 AM
begunrom begunrom is offline
Senior Member
 
Join Date: Jan 2006
Posts: 285
Default Re:actionsequence as webservice client

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
Reply With Quote
  #6  
Old 05-31-2006, 03:19 AM
spmva spmva is offline
Member
 
Join Date: May 2006
Posts: 54
Default Re:actionsequence as webservice client

I had the same problem. Had to use html entities instead of less than and greater than signs.

< = less than
&gt = greater than

I just cut and paste the xml to notepad and did a find replace.

steve
Reply With Quote
  #7  
Old 05-31-2006, 06:39 PM
mbatchelor mbatchelor is offline
Pentaho Chief Architect
 
Join Date: Nov 1999
Posts: 570
Default Re:actionsequence as webservice client

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
Reply With Quote
  #8  
Old 06-01-2006, 06:37 AM
begunrom begunrom is offline
Senior Member
 
Join Date: Jan 2006
Posts: 285
Default Re:actionsequence as webservice client

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
Reply With Quote
  #9  
Old 06-01-2006, 07:11 AM
mbatchelor mbatchelor is offline
Pentaho Chief Architect
 
Join Date: Nov 1999
Posts: 570
Default Re:actionsequence as webservice client

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. ;-)


OK - This one looks correct. What you should notice is that the result of the XML parser will find the first & and replace it with an ampersand (&). That will leave the other amp; behind it which ends up looking like &

I hope this helps,

Marc

Post edited by: mbatchelor, at: 06/01/2006 10:14
Reply With Quote
  #10  
Old 06-01-2006, 08:51 AM
begunrom begunrom is offline
Senior Member
 
Join Date: Jan 2006
Posts: 285
Default Re:actionsequence as webservice client

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
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:43 AM.