From: Peter K. <Pet...@lu...> - 2004-05-10 11:08:16
|
Hi There, I'm trying SOAP::Lite and Axis with attachments. I had to change one thing to get it to work, see the patch below. It has to do with the local-ization of the BOUNDARY_DELIMITER inside of a block where it is not being used. Furthermore, you may want to update your examples and show that one can use a: SOAP::Data->name(...)->attr({ href => 'cid:...' }) object to refer to a specific MIME part. regards, --- Peter... Patch: --- /export/home/prkas/temp/SOAP-Lite-0.60/lib/SOAP/Lite.pm 2003-08-18 20:44:18.000000000 +0200 +++ /usr/share/perl5/SOAP/Lite.pm 2004-05-10 13:01:33.000000000 +0200 @@ -2985,6 +2985,7 @@ $headers->header('Content-Type' => 'Multipart/Related; type="text/xml"; start="<main_envelope>"; boundary="'.$top->head->multipart_boundary.'"'); } + local $MIME::Entity::BOUNDARY_DELIMITER = "\r\n"; $serializer->on_nonserialized($self->on_nonserialized); my $response = $self->transport->send_receive( endpoint => $self->endpoint, -- "History teaches that grave threats to liberty often come in times of urgency, when constitutional rights seem too extravagant to endure." - Justice Thurgood Marshall, 1989 |