Which method are you calling?   getObjs?
getObj?   getObjs doesn't return Obj.
maybe that's the problem?



--- Jay Glanville
<[EMAIL PROTECTED]> wrote:

> I changed my server-config.wsdd to the following:
>     <service name="test" provider="java:RPC"
> style="rpc">
>         <document>
>             testing of service functionality
>         </document>
>         <parameter name="className"
> value="com.nci.slt.epi.admin.test.TestService"/>
>         <parameter name="allowedMethods" value="*"/>
>         <typeMapping qname="ns:Obj"
>            
> xmlns:ns="http://test.admin.epi.slt.nci.com";
>            
>
languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
>            
>
serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
>  
>
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
>             encodingStyle=""/>
>     </service>
> 
> And I still get the same fault: no serializer found.
> 
> Thanks for trying Airline.
> 
> JDG
> 
> > -----Original Message-----
> > From: Airline Pedestal
> [mailto:[EMAIL PROTECTED] 
> > Sent: Monday, February 28, 2005 8:51 PM
> > To: [email protected]
> > Subject: Re: "no serializer found" when using
> custom 
> > serializer problems
> > 
> > 
> > 
> > I think your encodingStyle should be
> > set to empty string ("").
> > 
> > 
> > --- Jay Glanville
> > <[EMAIL PROTECTED]> wrote:
> > 
> > > Hello all 
> > > 
> > > I'm trying to write my own
> serializer/deserializer. 
> > > So, on that
> > > education path, I'm taking rather small steps. 
> I've
> > > got a small bean
> > > (one attribute), a test service (that uses that
> > > bean), a rather simple
> > > serializer (that extends SimpleSerializer) and a
> > > rather simple
> > > serializer factory (that mimics
> > > SimpleSerializerFactory).
> > > 
> > > The problem is that when I call a method on my
> > > service, I get a "no
> > > serializer found" error.  Why is this?  What am
> I
> > > missing here?
> > > 
> > > I'm using Axis 1.2rc2 as an web service embedded
> > > into my web
> > > application.
> > > 
> > > The service's definition inside my
> > > server-config.wsdd is:
> > >     <service name="test" provider="java:RPC"
> > > style="rpc">
> > >         <document>
> > >             testing of service functionality
> > >         </document>
> > >         <parameter name="className"
> > > value="com.nci.slt.epi.admin.test.TestService"/>
> > >         <parameter name="allowedMethods"
> value="*"/>
> > >         <typeMapping qname="ns:Obj"
> > >            
> > > xmlns:ns="http://test.admin.epi.slt.nci.com";
> > >            
> > >
> >
>
languageSpecificType="java:com.nci.slt.epi.admin.test.Obj"
> > >            
> > >
> >
>
serializer="com.nci.slt.epi.admin.test.ObjSerializerFactory"
> > >  
> > >
> >
>
deserializer="org.apache.axis.encoding.ser.SimpleDeserializerFactory"
> > >            
> > >
> >
>
encodingStyle="http://schemas.xmlsoap.org/soap/encoding"/>
> > >     </service>
> > > 
> > > 
> > > I'm calling my service through a URL like this:
> > >
> >
>
http://jglanville01/webadmin/services/test?method=getObjs
> > > And am getting the following response:
> > >     AXIS error
> > > 
> > >     Sorry, something seems to have gone wrong...
> > > here are the details:
> > > 
> > >     Fault - ; nested exception is: 
> > >   java.io.IOException: No serializer found for
> class
> > > com.nci.slt.epi.admin.test.Obj in registry
> > >
> >
>
[EMAIL PROTECTED]
> > > 
> > >     AxisFault
> > >      faultCode:
> > >
> >
>
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> > >      faultSubcode: 
> > >      faultString: java.io.IOException: No
> serializer
> > > found for class
> > > com.nci.slt.epi.admin.test.Obj in registry
> > >
> >
>
[EMAIL PROTECTED]
> > >      faultActor: 
> > >      faultNode: 
> > >      faultDetail: 
> > > 
> {http://xml.apache.org/axis/}hostname:JGLANVILLE01
> > > 
> > > 
> > > 
> > > Now, I know that my serializer factory is being
> > > called (placed a
> > > breakpoint in the factory's constructor) and
> that
> > > none of the
> > > serializer's methods are being called.
> > > 
> > > 
> > > I've attached my service's implementation
> > > (TestService.java), my bean
> > > (Obj.java), my serializer (ObjSerializer.java)
> and
> > > my serializer factory
> > > (ObjSerializerFactory.java).
> > > 
> > > All help would be appreciated.
> > > 
> > > Thanks
> > > 
> > >  
> > > ---
> > > Jay Glanville
> > > 
> > 
> > > ATTACHMENT part 2 application/octet-stream
> > name=Obj.java
> > 
> > 
> > > ATTACHMENT part 3 application/octet-stream
> > name=ObjSerializer.java
> > 
> > 
> > > ATTACHMENT part 4 application/octet-stream
> > name=ObjSerializerFactory.java
> > 
> > 
> > > ATTACHMENT part 5 application/octet-stream
> > name=TestService.java
> > 
> > 
> > 
> > 
> >             
> > __________________________________ 
> > Do you Yahoo!? 
> > Yahoo! Mail - Easier than ever with enhanced
> search. Learn more.
> > http://info.mail.yahoo.com/mail_250
> > 
> 



                
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

Reply via email to