axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Jordahl <t...@macromedia.com>
Subject RE: BeanSerializer
Date Thu, 30 Jan 2003 18:47:18 GMT

All the data in the Bean is serialized, so all the element show up in the Schema.  It's the
other sides responsibility to deserialize the data in to a data type.  The thing on the other
end of the wire may not be Java, or may not have access to the original Java type.  For instance
WSDL2Java will emit a class that will allow the Schema to be deserialized in to it.

Tom Jordahl
Macromedia Server Development

-----Original Message-----
From: Mark Rowell [mailto:Mark.Rowell@credittrade.com] 
Sent: Thursday, January 30, 2003 9:19 AM
To: 'axis-user@xml.apache.org'
Subject: 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.

Mime
View raw message