You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Anne Thomas Manes <at...@gmail.com> on 2006/02/24 19:17:43 UTC
Re: Complex object in webservice
You have to define a bean serialized in your WSDD.
Anne
On 2/24/06, Walter do Valle <wa...@jfsc.gov.br> wrote:
>
> Hello all
>
> I looked for an answer to my question in previous messages in this forum.
> However I found many questions about same matter and no answer to the
> problem.
> My problem is: I'm trying to send a complex object as answer to a call to
> a webservice using axis. My complex object has a name (String) and an age
> (int) and implements Serializable. In the server all is ok. When my client
> calls the service, server throws an exception like this:
>
> java.io.IOException: No serializer found for class
> br.gov.jfsc.ninf.test.UsuerBean in registry
> org.apache.axis.encoding.TypeMappingDelegate@449afc
>
> What is the problem? How can I workaround this exception?
>
> Any help is welcome.
>
>
Re: Complex object in webservice
Posted by Anne Thomas Manes <at...@gmail.com>.
Ah .. you are using the .jws deployment feature.
You can also declare a bean serializer in your code.
You should consider moving up to a WSDD, though.
Anne
On 2/24/06, Walter do Valle <wa...@jfsc.gov.br> wrote:
>
>
> I don't define a wsdd. I think it is automatically generated by axis. Am I
> wrong?
>
> What can I do that? Do you have an example do send me?
>
>
> Anne Thomas Manes escreveu:
>
> You have to define a bean serialized in your WSDD.
>
> Anne
>
> On 2/24/06, Walter do Valle <walter@jfsc.gov.br > wrote:
> >
> > Hello all
> >
> > I looked for an answer to my question in previous messages in this
> > forum. However I found many questions about same matter and no answer to the
> > problem.
> > My problem is: I'm trying to send a complex object as answer to a call
> > to a webservice using axis. My complex object has a name (String) and an age
> > (int) and implements Serializable. In the server all is ok. When my client
> > calls the service, server throws an exception like this:
> >
> > java.io.IOException: No serializer found for class
> > br.gov.jfsc.ninf.test.UsuerBean in registry
> > org.apache.axis.encoding.TypeMappingDelegate@449afc
> >
> > What is the problem? How can I workaround this exception?
> >
> > Any help is welcome.
> >
> >
>
>