Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re^3: Web services - Upload

by osunderdog (Deacon)
on Oct 19, 2006 at 13:09 UTC ( #579351=note: print w/replies, xml ) Need Help??

in reply to Re^2: Web services - Upload
in thread Web services - Upload

More information is certainly better than less. ;)

What will happen to the file once it is received by the server... Some further processing? Stored off for another application to pickup?

I guess I'm trying to avoid telling you to build a server to receive the file, because those already exist. You could use ssh or ftp or something to receive the file using an already existing protocol. Just off the top of my head (and not to be mistaken for actual experience with this approach) I would have the client connect to the server... upon receiving a command from the client, the server would fire up ftp Net::FTPServer configured to accept connections on an agreed upon port. The client would then invoke ftp to connect to the agreed upon port. The client would transmit the file to the server. The client closes the ftp connection... the server takes back control after the ftp server indicates it has received the file or shutsdown.

In fact, after looking at Net::FTPServer, it may be something that you could extend to do exactly what you need...

Just some pseudo-random thoughts.

Hazah! I'm Employed!

Replies are listed 'Best First'.
Re^4: Web services - Upload
by vi_srikanth (Acolyte) on Oct 20, 2006 at 12:05 UTC

    I hav ordered the book "Programming Web Services with Perl". Let me see whether I get any ideas about this problem there.

    osunderdog, thank for the suggestion. This is just a start of what my customer request. All he asks now is give me a webservice by which I can upload file and send in some data. He might add something in future. All I want to do is just create a webservice that would enable file uploads. Anyway thanks again for the suggestion.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://579351]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2020-11-28 23:15 GMT
Find Nodes?
    Voting Booth?

    No recent polls found