Thanks for your reply.. I did remove the encoding type NS_URI_XML from my client.. that was a mistke, I was using that when returning an Element type... I removed it and still have the same problem though..

From what you say below, how do I get the qn to reference the complex type
rather than an element? I believe the qn is referencing the complex type now..




From: Airline Pedestal <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: No serializer found for class
Date: Thu, 26 Feb 2004 16:49:22 -0800 (PST)



Best I can tell, this whole type mapping mechanics
is complete magic!!!!

Here's an idea that might help you.

The qn I think needs to reference a complex type
in the XML schema (not an element).


By the way, what does encoding style NS_URI_XML mean?



--- christopher justin
<[EMAIL PROTECTED]> wrote:
> Hello all,
>
> My web service client seems to not register my class
> with the BeanSerializer
> correctly...I keep getting  "No serializer found for
> class
> TLI.beans.Category".  I am stumped... if any one can
> help out it would be
> greatly appreciated.  Here is my client code:
>
>                    Category c = new Category();
>                    c.setName("name");
>                     c.setValue("myname");
>                    Service service = new Service();
>       Call call = (Call)service.createCall();
>       QName qn = new
> QName("urn:SearchCategoryService", "Category");
>
>
> call.registerTypeMapping(Category.class, qn,
>
>
> BeanSerializerFactory.class,
>
>
> BeanDeserializerFactory.class);
>       call.setOperationName( "getCategoriesSearch" );
>       call.setEncodingStyle( Constants.NS_URI_XML );
>       call.addParameter( "Category", qn,
> ParameterMode.IN );
>       call.setReturnType( qn );
>                    call.setTargetEndpointAddress(
> endPoint );
>       Category cat1l = (Category) call.invoke( new
> Object[] {c} );
>
> Am i missing something ?  Does the Qname need to
> match something I am
> missing ?
>
>
_________________________________________________________________
> Say �good-bye� to spam, viruses and pop-ups with MSN
> Premium -- free trial
> offer!
>
http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/
>


__________________________________ Do you Yahoo!? Get better spam protection with Yahoo! Mail. http://antispam.yahoo.com/tools

_________________________________________________________________
Stay informed on Election 2004 and the race to Super Tuesday. http://special.msn.com/msn/election2004.armx




Reply via email to