Thanks a lot, DOZER looks good.

I'm also evaluating XFIRE, it seems more tidy when working with POJOS.

Thanks a lot again
tonio

On 9/14/06, Bell, Douglas <[EMAIL PROTECTED]> wrote:
The short answer is, no. If you search my previous posts you'll find a
discussion about why (I had the same issue you're having).

I worked around it by creating a interface for my domain objects with
the fields I don't want exposed missing, I then map my concrete domain
objects <-> DTOs by using Dozer (a bean mapper). It's hacky but it works
for what I am doing.

It still doesn't solve the core issue I have with this. Which is, for
example, if you have an Account object and only want to expose a
getAccountBalance to the user, AXIS will map setAccountBalance and
expose this to the user even if you have setAccountBalanace marked
private on your object.

- Doug




-----Original Message-----
From: Tonio Caputo [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 14, 2006 3:13 PM
To: [email protected]
Subject: Re: Serialization problem

Thanks Doug,

  Now the question:
Is there a way to make Axis ignore attributes that are not public, and
don't have getter and setter methods ?



  Just to know (I couldn't find anyting important in the WEB) axis 1.4
is not able to serializae correctly java 5 generics collection ?

On 9/14/06, Bell, Douglas <[EMAIL PROTECTED]> wrote:
> Hi Tonio,
>
> Since HibernatePerson is a member of Person it will attempted to
> serialize it. Take a look in your wsdd and you should see a mapping
> for HibernatePerson.
>
> The mapper simply looks at the fields and generates getters and
> setters for each of them no matter what you have them marked or how
> you have implemented them in the bean itself.
>
> - Doug
>
>
> -----Original Message-----
> From: Tonio Caputo [mailto:[EMAIL PROTECTED]
> Sent: Thursday, September 14, 2006 2:35 PM
> To: [email protected]
> Subject: Serialization problem
>
> Hi everybody,
>
> I'm using eclipse 3.2, WebTools 1.5, Apache axis 1.4.
>
> I'm generating the web-service, begining with a POJO, using Document
> literal (NOT WRAPPED, it generates wrong wsdd)
>
> When I run the test (soapui) I get a StackOverflowException, (I will
> not send you the stack, it's to big)
>
> My troubles:
>    * When transforming Person to XML axis tries to
>       transform HibernatePerson, why ?
>
> My Service class looks something like this
>
> PersonService {
>      Person getPersonById(id) {
>          // Obtain HibernatePerson from EJB
>
>      }
> }
>
> My Business Classes look something like this
>
> // Delegate for HibernatePerson to
> // map Generics Collection
> Person {
>
>       private transient HibernatePerson _hp;
>
>       Person() {}
>       protected Person(HibernatePerson) {
>          _hp = new HIbernatePerson();
>       }
>
>       String getName() { return _hp.getName(); }
>       void setName(String s) { return _hp.setName(s);   }
>
>       Emails[] getEmails() {
>          // Transform _hp Set<Emails> to Emails[]
>       }
>
>       void setEmails(Emails[] emails) {
>           // put Emails[] in _hp Set<Emails>
>       }
> }
>
> Email {
>     String getEmailAddr();
>     void setEmailAddr(String addr);
> }
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to