, Bogdan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 30, 2004 9:49 AM
To: [EMAIL PROTECTED]
Subject: RE: hiding a property from Axis serializer?
Could you please elaborate a little more on that? In what way exactly? Have
my class implement BeanInfo interface and describe the properties I'd
Try using the bean info class to define what properties exist for the bean.
Axis seems to obey this Java Bean rule.
-Original Message-
From: Sheptunov, Bogdan [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 23, 2004 11:57 AM
To: [EMAIL PROTECTED]
Subject: RE: hiding a property from
: Tuesday, November 30, 2004 11:40 AM
To: [EMAIL PROTECTED]
Subject: RE: hiding a property from Axis serializer?
Try using the bean info class to define what properties exist
for the bean.
Axis seems to obey this Java Bean rule.
-Original Message-
From: Sheptunov, Bogdan [mailto
Sheptunov, Bogdan wrote:
Could you please elaborate a little more on that? In what way exactly? Have my class implement BeanInfo interface and describe the properties I'd like to see returned in getPropertyDescriptors() method?
Read the Java Beans specification, in particular the sections that
Sheptunov, Bogdan wrote:
A filter all those properties approach is to create a
interface for
each of those beans you would like to serialize, but just including
getters and setters for those properties you really want to be
serialized; then let your bean implement that interface
(already
Yes I saw that, thank you Adrian. I understand that I should be able to
specifying which properties I want serialized by writing a custom serializer.
However, I do not wish to do that. I do not see any special circumstances in
what I am trying to do that Axis should not be able to handle.
As
I don't think there is any way of hiding
properties explicitly. If you use a BeanSerializer, all properties that
follow the JavaBean convention will be picked up. One way is to not use
JavaBean conventions for those properties that you want to hide. Take a
look at the JavaBean specification and
WSDL still being put
up in the response?
Thanks
Bogdan
-Original Message-From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]Sent: Tuesday, November 23, 2004 2:41
AMTo: [EMAIL PROTECTED]Subject: Re: hiding a
property from Axis serializer?I don't think there is any way of hi
Sheptunov, Bogdan wrote:
Thank you Tony. This is what I ended up doing yesterday - putting
underscores in front of the methods. Don't like it though, as
technically by doing this I am in violation of coding standards, and
in general this isn't a clean solution.
I actually thought I found a
A filter all those properties approach is to create a
interface for
each of those beans you would like to serialize, but just including
getters and setters for those properties you really want to be
serialized; then let your bean implement that interface
(already does!)
and alter
Hello,
Axis serializer by default picks up everything that looks like a JavaBean
property, and puts it into response. This leads to an undesirable side effect:
some of the class internals that have bean-like access, become exposed to the
outside and end up being automatically included into the
11 matches
Mail list logo