Hi,
Here I will explain the case: We have a perl based application which has all the business logic and data into it. Can we make drupal to interact with it ? And get data chunks out of it, display it inside Drupal.
i.e. we will require to see various reports generated by perl application on that data inside Drupal.
What I can think of is, - we can include IFRAME inside drupal pages or blocks. - Make some web services so that Drupal can access it as a web service client. But it seems very difficult to do.
Any other idea other than above so that we can use external application's(in our case it's perl) data into Drupal.
My apologies, if I have not explained the issue enough.
Awaiting suggestions.
I ust the second strategy (web services) with great success. It's a little harder to get going, but looks nicer and is more versatile in the end.
Good luck.
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Gaurav Khambhala Sent: Wednesday, April 15, 2009 5:30 AM To: support@drupal.org Subject: [support] Can we make Drupal to use or display data from external application ?
Hi,
Here I will explain the case: We have a perl based application which has all the business logic and data into it. Can we make drupal to interact with it ? And get data chunks out of it, display it inside Drupal.
i.e. we will require to see various reports generated by perl application on that data inside Drupal.
What I can think of is, - we can include IFRAME inside drupal pages or blocks. - Make some web services so that Drupal can access it as a web service client. But it seems very difficult to do.
Any other idea other than above so that we can use external application's(in our case it's perl) data into Drupal.
My apologies, if I have not explained the issue enough.
Awaiting suggestions.
-- Cheers, Gaurav Khambhala i-hack-at-DeepRoot Linux Getting GNU/Linux to work for you. Faster. Better. Today. Every way. http://www.deeproot.in, +91 80 4089 0000 -- [ Drupal support list | http://lists.drupal.org/ ]
Hi David,
Metzler, David wrote:
I ust the second strategy (web services) with great success. It's a little harder to get going, but looks nicer and is more versatile in the end.
Do you have any idea-reference-demo, how exactly I can proceed for the suggested option ?
I have some code that I'm willing to share, but it will probably need some heavy refactoring. It works great of what I do, but it wasn't really designed with general consumption in mind. The general strategy is as follows:
1. Make sure the perl web service writes valid XHTML. 2. Write a general module that does http requests and gets the data based on get or post parameters that are passed in to a function. 3. Use PHP's SimpleXML to parse the data coming in and get its innards for display. (eg. $output .= $response->body->asXML();) 4. To make the extrnal data really embeded, develop a custom filter syntax so that you can embed data from the other application directly in a drupal page/panel, etc.
If you have forms in the perl code, you'd need to rebuild the forms using the forms api.
Lets take this off list. I have some general code that I'm willing to start a project with, and in fact have been meaning to. Would you be interested in collaborating on getting it ready for general consumption.
If you're interested, the best would probably be to contact me using my non-work email, metzlerd@metzlerd.com, but I can always be reached here, or via my drupal contact form on drupal.org.
Dave
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of Gaurav Khambhala Sent: Thursday, April 16, 2009 12:38 AM To: support@drupal.org Subject: Re: [support] Can we make Drupal to use or display data from external application ?
Hi David,
Metzler, David wrote:
I ust the second strategy (web services) with great success. It's a little harder to get going, but looks nicer and is more versatile in the end.
Do you have any idea-reference-demo, how exactly I can proceed for the suggested option ?
On Thursday 16 April 2009 2:37:36 am Gaurav Khambhala wrote:
Hi David,
Metzler, David wrote:
I ust the second strategy (web services) with great success. It's a little harder to get going, but looks nicer and is more versatile in the end.
Do you have any idea-reference-demo, how exactly I can proceed for the suggested option ?
I actually just ran a workshop at the Museums on the Web conference in Indianapolis on that exact subject. :-) I will be making a follow-up blog post with sample code as soon as I get the chance to do so, hopefully within the next week. Watch for it on Drupal Planet. (Sorry, can't get into more detail at 2 am... <g>)_
Larry Garfield wrote:
I actually just ran a workshop at the Museums on the Web conference in Indianapolis on that exact subject. :-) I will be making a follow-up blog post with sample code as soon as I get the chance to do so, hopefully within the next week. Watch for it on Drupal Planet.
Waiting for it :) :)
On Tuesday 28 April 2009 12:57:16 am Gaurav Khambhala wrote:
Larry Garfield wrote:
I actually just ran a workshop at the Museums on the Web conference in
Indianapolis on that exact subject. :-) I will be making a follow-up blog post with sample code as soon as I get the chance to do so, hopefully within the next week. Watch for it on Drupal Planet.
Waiting for it :) :)
Went up a few days ago: http://www.palantir.net/blog/remote-data-drupal-museums-and-web-2009
Hi:
Here I will explain the case: We have a perl based application which has all the business logic and data into it. Can we make drupal to interact with it ? And get data chunks out of it, display it inside Drupal.
i.e. we will require to see various reports generated by perl application on that data inside Drupal.
What I can think of is,
- we can include IFRAME inside drupal pages or blocks.
- Make some web services so that Drupal can access it as a web service
client. But it seems very difficult to do.
Any other idea other than above so that we can use external application's(in our case it's perl) data into Drupal.
A while ago I did something like that. Using an import/export module, I was able to write a perl script which generate an xml file suitable for importing the data into drupal nodes (including of course, the proper taxonomies for each one). If you want your drupal site to interact with the perl base application, then services should be the way to go. Something like this comes to my mind: http://drupal.org/project/services Good luck and tell us how it went (i'm a big fan of perl, it's a shame it didn't have a nice cms like drupal ;) Regards Osvaldo