axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tonio Caputo" <tonio...@gmail.com>
Subject Re: Serialization problem
Date Thu, 14 Sep 2006 22:12:50 GMT
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 <DBell@boingo.com> 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:toniocus@gmail.com]
> Sent: Thursday, September 14, 2006 2:35 PM
> To: axis-user@ws.apache.org
> 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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message