maskedavenger
asked on
SMIL as SOAP Attachment using SAAJ
I have been building a SOAP based client using SAAJ.
What I need to do is create a SMIL attachment.
Lets say my SMIL XML has an image element:
- Do I have to add both these elements as attachments in the SOAP body?
XML Sample:
String smilContent = "<smil>
...
<body>
<img href="cid:smil_image" />
</body>
...
</smil>";
Code Sample:
AttachmentPart attachment = message.createAttachmentPa rt();
attachment.setContent(smil Content, "multipart/Related;Type=\" applicatio n/smil\";S tart=\"<SM IL>\";");
attachment.setContentId("s mil_attach ment01");
attachment.setContent(imag eContent, "image/jpeg");
attachment.setContentId("s mil_image" );
Or is there a better way of handling SMIL as SOAP attachments?
What I need to do is create a SMIL attachment.
Lets say my SMIL XML has an image element:
- Do I have to add both these elements as attachments in the SOAP body?
XML Sample:
String smilContent = "<smil>
...
<body>
<img href="cid:smil_image" />
</body>
...
</smil>";
Code Sample:
AttachmentPart attachment = message.createAttachmentPa
attachment.setContent(smil
attachment.setContentId("s
attachment.setContent(imag
attachment.setContentId("s
Or is there a better way of handling SMIL as SOAP attachments?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
https://www.experts-exchange.com/questions/22871882/Multipart-Related-Attachment-using-SAAJ.html