This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes adding SOAP attachment Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "adding SOAP attachment" Watch "adding SOAP attachment" New topic
Author

adding SOAP attachment

hatem odeh
Greenhorn

Joined: Jun 16, 2008
Posts: 24
Dear believers ,

I need to add the following SMIL part ( I do have the part as a bytes array ) to a SOAP msg using the SAAJ, the smil part should have content type of application/smil and the id smil.smil , and it should be the first part (start)

<smil><head><layout><root-layout backgroundColor="#FFFFFF" background-color="#FFFFFF" height="480px" width="640px"/>
<region id="Image" top="0" left="0" height="50%" width="100%" fit="meet"/>
<region id="Text" top="50%" left="0" height="50%" width="100%" fit="scroll"/>
</layout>
</head>
<body><par dur="4000ms"><img src="Happy.gif" region="Image"></img>
</par>
</body>
</smil>


-----------------------
also suppose that i have bytes of a string how can I add it to the SOAP message as MIME attachment , what should the content type be, what are the steps exactly !!please help
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
An example of a SAAJ client can be found here. Expanding on that it should be possible to construct any SAAJ message you wish.

Depending on what you want to do with the text you may prefer to send it in a CDATA section instead, thus you wouldn't have to create elements for all the tags.

This article explains how to send SOAP attachments using SAAJ.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: adding SOAP attachment
 
Similar Threads
SAAJ - SOAP attachment
Extracting SOAP Attachments!! Help!!
Parsing SOAP Information
Parsing POST Information
Problem with smil fit:scroll