I have a piece of code that parses an XML defined as follows:
<service name="INT_Trip_PingRQ"> <url></url> <action>Trip_PingRQ</action> <payload></payload> <failurecount>3</failurecount> <alerts> <alert ref="Log4j" /> </alerts> <username>206041</username> <password>nbcb3172</password> <organization>Employees</organization> <domain>Sabre</domain> </service>
ServiceObject service=new ServiceObject(); service.setPassword(); <!-- this is nbcb3172 that comes from this xml-->
<service name="INT_Trip_PingRQ"> <url>https://cert.webservices.sabre.com/tsts</url> <action>Trip_PingRQ</action> <payload><![CDATA[<Trip_PingRQ Version="1.0" xmlns="http://webservices.sabre.com/triprecord" />]]></payload> <failurecount>3</failurecount> <alerts> <alert ref="Log4j" /> </alerts> <username>206041</username> <reference-to-password>reference2</reference-to-password> <organization>Employees</organization> <domain>Sabre</domain> </service>
I forgot to post the link http://www.jboss.org/community/wiki/EncryptingDataSourcePasswords