I want to encrypt the body of my SOAP message twice (super encryption). I am using Axis2 with Rampart.
I am trying to change the policy of this scenario to encrypt it twice.
I was looking at this part (no clue if that makes sense):
...
<sp:EncryptedParts>
<sp:Body/>
</sp:EncryptedParts>
...
I tried:
...
<sp:EncryptedParts>
<sp:EncryptedParts>
<sp:Body/>
</sp:EncryptedParts>
</sp:EncryptedParts>
...
This gave me an error: "Unexpected encrypted data found, no encryption required"
I also tried:
...
<sp:EncryptedParts>
<sp:Body/>
<sp:EncryptedData/>
</sp:EncryptedParts>
...
Does somebody know how to do this? It doesn't even have to be through the policy: I just need this to happen and get accepted by the server for testing purposes.