Forum Stats

  • 3,784,352 Users
  • 2,254,928 Discussions
  • 7,880,790 Comments

Discussions

How encrypt SoapBody with encryptWithEncKey

user3096536
user3096536 Member Posts: 60 Blue Ribbon

Hello everybody,

I want to encrypt SoapBody with encryptWithEncKey.

I wrote the following code :

                ArrayList objectList = new ArrayList();              

                objectList.add(soapMessage.getSOAPBody());

I print elements of objectList

element 0 a encripty [S:Body: null]

Body is

<?xml version="1.0" encoding="UTF-8"?>

<S:Body xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">

<ns2:consultarCategoriasPorOrganismo xmlns:ns2="http://ws.funcionario.map.es/">

<codOrganismo>

3</codOrganismo>

</ns2:consultarCategoriasPorOrganismo>

</S:Body>

Is this right?. How do I have to add SoapBody to ArrayList. Because the value of ArrayList is [S:Body: null]

Thanks in advance

Carlota Vina

This discussion has been closed.