Hi Abanindra,

Please have a look at Sample 10 in this [1] presentation. The example
code is available here [2]. If you are not familiar with Rampart and
Axis2 will probably have to go through the first few samples as well.

Thanks,
Ruchith

[1] http://www.wso2.net/presentations/wss4j/java/2006/08/04/apache-rampart
[2] http://www-lk.wso2.com/~ruchith/rampart-tute.zip

On 8/10/06, Sarkar, Abanindra <[EMAIL PROTECTED]> wrote:
Ruchith,

  Thanks for this information.

  Can you send me a sample SOAP message that has an encrypted MIME
parts? That will help me to understand the structure of the SOAP message
with an encrypted MIME parts.


Regards
Abanindra

-----Original Message-----
From: Ruchith Fernando [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 10, 2006 6:33 PM
To: Sarkar, Abanindra
Cc: [email protected]
Subject: Re: Generating a SOAP message with encrypted MIME message

Hi Abanindra,

In Axis2/Rampart we have a mechanism to send the encrypted content as a
MIME part using MTOM.

If you use Axis2 to send your binary content as MIME using MTOM, then
you will be able to use Rampart (WS-Sec module for axis2 based on
wss4j) to encrypt the  soap body where it will encrypt the base64 form
of the binary content. This will add the encrypted data into the soap
body (if the MTOM optimized content was referenced from the body).

Then you can specify the encrypted content to be MTOM optimized (in the
rampart outflow configuration) , which will send the encrypted binary
content in the wire as a MIME part.

Thanks,
Ruchith

On 8/10/06, Sarkar, Abanindra <[EMAIL PROTECTED]> wrote:
>
>
> Can some one help me to understand the structure of a SOAP message
> which will have an encrypted MIME parts?
>
>  I am finding it real hard to understand how we can encrypt only the
> MIME parts of a SOAP message using the WSS4J API. I am not finding any

> API which will take a bytestream (assume the MIME has an arbitary
> data) a SOAP message and a certificate and will return me back a SOAP
> message with an encrypted MIME parts.
>
> Any help will be highly solicited.
>
> regards
> Abanindra
>


--
www.ruchith.org



--
www.ruchith.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to