views:

8

answers:

0

Hi,

I'm using Apache cxf to create objects from a WSDL. Everything works fine but I have some XHTML inside the SOAP message and i don't know how to access it.

The resulting xml is

<folder>
              <id S="ID-KMEHR" SV="1.0" SL="idfolder">1</id>
              <patient>
                 <id S="ID-PATIENT" SV="1.0" SL=" ">05040199</id>
                 <id S="LOCAL" SV="1.0" SL="NUMPAT">99</id>
                 <firstname>A</firstname>
                 <familyname>TEST</familyname>
                 <birthdate>
                    <date>1901-01-01</date>
                 </birthdate>
                 <sex>
                    <cd S="CD-SEX" SV="1.0">M</cd>
                 </sex>
                 <address>
                    <cd S="CD-ADDRESS" SV="1.0">home</cd>
                    <country>
                       <cd S="CD-COUNTRY" SV="1.0">be</cd>
                    </country>
                    <zip></zip>
                    <city></city>
                    <street></street>
                 </address>
              </patient>
              <transaction>
                 <id S="LOCAL" SV="1.0" SL="NUMOBJ">68909</id>
                 <cd S="CD-TRANSACTION" SV="1.0" SL="" DN="" L="">contact</cd>
                 <cd S="LOCAL" SV="1.0" DN="DESCRIPTIF"></cd>
                 <date>2010-03-10</date>
                 <author>
                 </author>
                 <iscomplete>true</iscomplete>
                 <isvalidated>true</isvalidated>
                 <text-with-layout L="fr">
                    <body xmlns:ns6="http://www.w3.org/2001/04/xmlenc#" xmlns="">
                       <div style="background-color:#99AECE;">
                          <br/>
                          <table align="center" cellpadding="5" style="background-color:#ffffff; border-width:2px; border-color:#000000; border-style:solid; " width="90%">
                             <tr>
                                <td colspan="1" rowspan="1">
                                   <p style="text-align:right;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">Title test 2010</span>
                                   </p>
                                   <p/>
                                   <p/>
                                   <p style="margin-left:322px;text-indent:-55px;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">&lt;DESTINATAIRES></span>
                                   </p>
                                   <p/>
                                   <p style="margin-left:322px;text-indent:-55px;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">&lt;COPIESCOURT></span>
                                   </p>
                                   <p/>
                                   <p/>
                                   <p/>
                                   <p>
                                      <span style="font-family:Times,serif;color:#000000;font-size:9pt;">Références Sec : GRIPA/GRIPA  10/03/2010</span>
                                   </p>
                                   <p>
                                      <span style="font-family:Times,serif;color:#000000;font-size:9pt;"/>
                                      <span style="color:#000000;font-size:9pt;">        </span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:9pt;">Pat  :</span>
                                   </p>
                                   <p>
                                      <span style="font-family:Times,serif;color:#000000;font-size:9pt;">Mut:</span>
                                   </p>
                                   <p/>
                                   <p/>
                                   <p>
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Concerne</span>
                                      <span style="font-weight:bold;font-family:Times,serif;color:#000000;font-size:12pt;">:  , née le</span>
                                   </p>
                                   <p/>
                                   <p>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">&lt;ENTETE></span>
                                   </p>
                                   <p/>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">&lt;TVHF:Ton|Ta|Votre|Votre|Ton|Ta|Votre|Votre> patiente,  , a été examinée en consultation de gastro-entérologie le 10/03/2010 pour la prise en charge test rsw.</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Affection actuelle</span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">:</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">test rsw</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Traitement en cours</span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">:</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">test rsw</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Evolution</span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">:</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">test</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Conclusion</span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">:</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">test</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-weight:bold;text-decoration:underline;font-family:Times,serif;color:#000000;font-size:12pt;">Traitement proposé</span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">:</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">test</span>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;"/>
                                   </p>
                                   <p/>
                                   <p style="text-align:justify;">
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">&lt;SALUTATION></span>
                                   </p>
                                   <p/>
                                   <p/>
                                   <p>
                                      <span style="color:#000000;font-size:12pt;">        </span>
                                      <span style="color:#000000;font-size:12pt;">        </span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;"/>
                                      <span style="color:#000000;font-size:12pt;">        </span>
                                      <span style="color:#000000;font-size:12pt;">        </span>
                                      <span style="font-family:Times,serif;color:#000000;font-size:12pt;">
                                         <br/>
                                      </span>
                                   </p>
                                </td>
                             </tr>
                          </table>
                          <br/>
                       </div>
                    </body>
                 </text-with-layout>
                 <recorddatetime>2010-03-10T00:00:00</recorddatetime>
              </transaction>
           </folder>

I use the following code but it doesn't give me the xhtml inside "text-with-layout" :

> folder.getTransaction().get(0).getTextWithLayout()

Any idea on how to get the xhtml ?

Thanks