Hello,
Im working on a client in VB that needs to send a binary via SOAP to a server that
works with Axis Beta1. This version does not have DIME support yet, so I'm using MIME
for SOAP with Attachments. For testing I have made a client in java with Axis that
sends a binary and that works fine. Now I want to do the same in VB. MS-SOAP TK3 works
with DIME, so i'm ussing HTTP PUT to build my own SOAP request. For normal requests
that works fine, but as soon as I want to send an attachments it goes wrong.
I have captured the SOAP request of the Java/Axis client and I tried to rebuild that.
I see the attachment is send with the 'Content-Transfer-Encoding' set to 'binary', so
no encoding is used. If I look at 'Content-Length' it is 12948 bytes (the whole
message is 13247 bytes). But I'm sending a binary of 2048 bytes, where does the other
bytes come from? Does Axis use some kind of encoding or serialisation? If I look in
the captered message the binary part has become 12,7kb.
If I try to build the same request in VB, but then the Content-Length comes to 3434
bytes.
If I this request I get the error:
javax.mail.MessagingException: Error in input stream;
nested exception is:
java.io.IOException: Stream closed.
What am I doing wrong?
Grtz,
Gerrie...
--
__________________________________________________________
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup