[Xml-compile] XML::Compile::XOP MTOM
Mark Overmeer
mark at overmeer.net
Fri Aug 14 09:30:04 GMT 2009
* Donnie Cherng (donniecherng at gmail.com) [090814 01:17]:
> Seems you agree with me. The following coding should do the trick to upload
> a file via MTOM method under SOAP::Lite:
> my $fn="foo.txt";
> my $mimetypes = MIME::Types->new;
> my $type = $mimetypes->mimeTypeOf($fn);
> my $xop = XML::Compile::XOP->new();
> my $data = $xop->file($fn, type => $type);
> my $Cid =$data->cid;
No, it will not work: part of the XOP handling is implement in the
XML::Compile::SOAP part, not in the ::XOP object. SOAP::Lite does
not have that logic.
--
Regards,
MarkOv
------------------------------------------------------------------------
Mark Overmeer MSc MARKOV Solutions
Mark at Overmeer.net solutions at overmeer.net
http://Mark.Overmeer.net http://solutions.overmeer.net
More information about the Xml-compile
mailing list