Hi,

I'm trying to send binaries as attachments with SOAP (Axis on client side
and server side). This works ok, as long as the attachment is smaller then 1
Kb. If the attachment is bigger it does not arrive at the server. I use this
code:

Client side:
AttachmentPart ap= new AttachmentPart(new DataHandler( new
FileDataSource(fileName)));
ap.setContentId(fileName);
call.addAttachmentPart(ap); 

Server side:
reqMsg = msgContext.getCurrentContext().getRequestMessage();
attachments = reqMsg.getAttachments();
 
If I look at attachments.getAttachmentCount() serverside, it return 0 if the
sended attachment is bigger then 1Kb.

What am I doing wrong?

Thanks,

Gerrie...

Reply via email to