?
Solved

How to use Perl and SOAP to transfer files

Posted on 2006-05-09
4
Medium Priority
?
177 Views
Last Modified: 2010-04-06
I would like to write a SOAP client and server to send and to receive files. The files will mostly be exe, zip, and various image files. Whats the best way to accomplish this in perl? I have been reading some stuff on the net and some suggest using MIME some suggest other methods. I just want someone with experience doing this to give me their feedback.
0
Comment
Question by:amesdaq
3 Comments
 
LVL 23

Expert Comment

by:rama_krishna580
ID: 16662778
0
 

Author Comment

by:amesdaq
ID: 16671343
Actually I figured it out already. Much easier way

my $data;
my $fh;
my $filename = $ARGV[1];
open ($fh, "$filename");
binmode($fh);
while (<$fh>)
{
         $data.=$_;
}
close $fh;
my $som = $client->file($filename, $data);
0
 
LVL 1

Accepted Solution

by:
DarthMod earned 0 total points
ID: 16991502
PAQed with points refunded (125)

DarthMod
Community Support Moderator
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It's sometimes a bit tricky to use date functions in Oracle BPEL. I'll explain quickly how you can add N days to the current date. In a BPEL process this can be useful, and you can adapt it to fit your needs. First of all, let's see how to add 1 …
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL several years ago, it seemed like now was a good time to update it for object-oriented PHP.  This article does that, replacing as much as possible the pr…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

616 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question