I have recently faced quite a lot of problem using JAXB objects to invoke SOAP webservices. There were several elements declared as : <xs:simpleType name="someAttr"><xs:restriction base="xs:double"/></xs:simpleType> When I used "wsimport" command line tool to generate Java classes for the WSDL, all those attributes generated as private double someAttr; What happened later was all the values were transformed automatically to scientific notation like : 2.85292746E8 This was a major issue, as the actual values were getting truncated. After a long search and trial and error, I found an easy solution to my problem, to change the declaration private double someAttr; To : private BigDecimal someAttr; No value truncation or transformation happened after that.
About anything and everything from my daily consulting life. ADF, Java, Weblogic, Unix shell scripting, Mobile technology..etc. etc.. The views expressed on this blog are my own and do not necessarily reflect the views of my employer.