can't transfer file attachments from java axis to soap lite??

E

Elhanan Maayan

hi..
using active state perl..

i'm trying to run a simple client code:

$ent = MIME::Entity->build(Path=>"C:\\FromClient.txt",
Disposition => "attachment",
Id => "12312",
Encoding => "binary" );
my @parts = ($ent);
my $som = SOAP::Lite
->readable(1)
->uri("urn:Testme")
->parts(@parts )
->proxy("http://localhost:1234/axis/Testme.jws")
->echo(SOAP::Data->name("source")->attr( {href,'12312'}));

which produces the soap request:

This is a multi-part message in MIME format...

------------=_1083601868-3020-0
Content-Type: text/xml
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
Content-Location: /main_envelope
Content-Id: <main_envelope>

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:xsi="http://www.w3.org/1999/XMLSchema-instance"
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/1999/XMLSchema"
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
<SOAP-ENV:Body
<namesp1:echo xmlns:namesp1="urn:Testme"<source href="12312"/></namesp1:echo></SOAP-ENV:Body></SOAP-ENV:Envelope>
------------=_1083601868-3020-0
Content-Type: text/plain; name="C:\FromClient.txt"
Content-Disposition: attachment; filename="C:\FromClient.txt"
Content-Transfer-Encoding: binary
Content-Id: 12312
MIME-Version: 1.0
X-Mailer: MIME-tools 5.411 (Entity 5.404)

this is a test for me to see if i got it stright
------------=_1083601868-3020-0--


but for some reason apache returns HTTP error 500!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top