axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian J. Sayatovic" <>
Subject Re: Hiding setter methods of a bean
Date Wed, 08 Dec 2004 04:30:24 GMT
I think a custom Serializer/Deserializer will handle this.  Then you can 
write out the schema with only those attributes you'd like, and then 
only write out / read in the properties you're interested in exposing 
when de/serializing instances.


Koney, Satish wrote:

>I am writing a web service in which I am returning a User object to the
>client. On the server side, this User object looks just like an ordinary
>In the server side I want to have setter methods for all the properties in
>But when I return the User object to the client, that object should not have
>setter methods.
>Is there anyway I can achieve this?
>Confidential:  This electronic message and all contents contain information
>from Syntel, Inc. which may be privileged, confidential or otherwise
>protected from disclosure. The information is intended to be for the
>addressee only. If you are not the addressee, any disclosure, copy,
>distribution or use of the contents of this message is prohibited.  If you
>have received this electronic message in error, please notify the sender
>immediately and destroy the original message and all copies.

View raw message