Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Automated data downloads
Old 12-11-2006, 05:10 AM Automated data downloads
Junior Talker

Posts: 2
Name: John Gosling
Trades: 0
Hi,

I need to set up an automated system where a client can download data from our mySQL database to directly update their own database. Although I am an experienced Perl and database programmer, I have no experience whatsoever of this sort of application and I would be grateful for some idea of where to start.

The system would need to run on a daily basis and be entirely automated. I am presuming that this would be done by the client running a Chron job from their site and sending a request to a script on our site to extract the data. I am also presuming that the ideal format for sending the data to the client would be XML. I have no problem in terms of writing a Perl script to output the data in XML format. However, my only experience is with creating script output to a web page rather than to an external program - so I need to know what is the crucial difference in generating this form of output.

For example, when creating output to a web page, one normally sends the header "Content-Type:text/html" before the output. When sending output to an external program, is it simply a matter of using a different header?

I should add that I don't need to worry too much about the client's end - that's their problem. I only need to know how to output the data in a form suitable for the requesting program. Any advice would be much appreciated.
johng is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-11-2006, 09:00 AM Re: Automated data downloads
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,519
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
it's quite simple really

The user agent (client end) makes the request, the server (your end) sends the data, the user agent (client end) does whatever with the data.

Timing is up to the client end, Your end should not try to do a "push" download

for the data format XML should be perfectly adequate.
There is no difference between the two in coding and no need for content headers. The client UA should only be expecting one type of data and that is whatever your system is sending.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 12-11-2006, 09:18 AM Re: Automated data downloads
Junior Talker

Posts: 2
Name: John Gosling
Trades: 0
Thanks for the reply, Chris.

Since my original message, I came across Perl's SOAP::Lite which seems to do everything I need and having run a few tests, it seems pretty easy to set up. I know that SOAP is the 'in-thing' these days, though I'm wondering whether it has any particular advantages over the rather more straightforward approach you are suggesting.

John
johng is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Automated data downloads
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17487 seconds with 12 queries