You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Mark Rowell <Ma...@credittrade.com> on 2003/01/30 15:19:01 UTC

BeanSerializer

Hi

I was wondering why it was necessary for Java2WSDL generate an element in a
complex type for properties of a class that are read-only?
After all when deserializing an instance of a class with read-only
properties how is it going to set the value of the property in the new
instance?
Am I wrong on this one?

I have patched a local copy so that when it writes out the schema
complexType definition it ignores read-only properties by using
the isWriteable() method on the BeanPropertyDescriptor class.

Regards,

Mark


----------------------------------------------------------------
Mark Rowell
CreditTrade

T: +44 (020) 7400 5078
M: mailto:mark.rowell@credittrade.com

CreditTrade Limited is regulated by the FSA. (c) CreditTrade 2002. All rights reserved. The information and data contained in this email is provided for the information purposes of the addressee only and should not be reproduced and/or distributed to any other person. It is provided without any warranty whatsoever and unless stated otherwise consists purely of indicative market prices and other information.

Any opinion or comments expressed or assumption made in association with the data or information provided in this email is a reflection of CreditTrades judgement at the time of compiling the data and is subject to change. CreditTrade hereby makes no representation and accepts no responsibility or liability as to the completeness or accuracy of this email.

The content of this email is not intended as an offer or solicitation for, or recommendation of, the purchase or sale of any financial instrument, or as an official confirmation of any transaction, and should not be construed as investment advice.