or download this
open my $output_fh, '>', \my $mime_body
or die "In-memory handles are not supported by your version of Per
+l.";
...
# use $mime_body as the string wherever you would use it with SOAP::Pa
+ckager
# I don't know if the following is valid, using a raw string as a MIME
+ part:
$soap->parts( [$mime_body] );