CXF : Requête SOAP (XML) et Reponse en JSON
Bonjour,
Est ce qu'il est possible de convertir la réponse d'un service SOAP en JSON avec CXF, j'ai beaucoup creusé mais pour l'instant je trouve pas de solution qui tient la route.
Example :
Requête :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://service.personne.xxx.xxx.com/">
<soapenv:Header/>
<soapenv:Body>
<ser:create>
<arg0>
<adresse>
<adressePrincipale>1</adressePrincipale>
<codePays>FR</codePays>
<codePostal>69000</codePostal>
<ville>Lyon</ville>
</adresse>
<personneId>1</personneId>
</arg0>
</ser:create>
</soapenv:Body>
</soapenv:Envelope> |
Réponse :
Code:
1 2 3 4 5 6 7 8 9
| {
"adressAjoutee": {
"codePostal": "codePostal",
"codePays": "codePays",
"ville": "Lyon",
"adressePrincipale": 1,
"id":1
}
} |
Je vous remercie