• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

adding SOAP attachment

 
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic