tags:

views:

91

answers:

1

I am using SAAJ at the client side for sending a soap request. I am also attaching a random binary string as an attachment to the SOAP request, using this API.

soapMessage.addAttachment(attachment);

When I sniff this request through wireshark, I can see my attachment outside the <SoapEnv>, but when this request reaches the client side (which is implemented using the JBoss libraries), I only get the message and not the attachment.

I have not specificed anything in the WSDL related to the attachments.

I can't figure out what can be the problem.

Any pointers would be helpful.

+1  A: 

Do you send along the right Content-Type, Content-Transfer-Encoding and Content-ID header values?

http://www.ws-i.org/Profiles/AttachmentsProfile-1.0.html#Value-space%5Fof%5FContent-Id%5FHeader

Maybe post the generated soap-message

jitter