Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2794

Re: Converting StringValue (base64binary) in SOAP request to SOAP attachment to receiver

$
0
0

Ritu,

 

Addition to the above Bhavin's code once the input filed is decrypted to make this as soap attachment use below code :

   

 

GlobalContainer globalContainer = container.getGlobalContainer();

byte[]convertedInput=decodedConten.getBytes();

OutputAttachments outputAttachments = globalContainer.getOutputAttachments();

Attachment outputAttachment;

String contentType="application/xml"; ( " this depends on your content type i.e file type for ex: if you want it as a xml attachment then application/xml , for plain text it is text/plain)

outputAttachment = outputAttachments.create("Myfile.xml",contentType,convertedInput);

 

 

outputAttachments.setAttachment(outputAttachment);


Br,

Manoj


Viewing all articles
Browse latest Browse all 2794

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>