> 
> On Tue, Sep 23, 2008 at 8:06 PM, Coe, Colin C. (Unix Engineer)
> <[EMAIL PROTECTED]> wrote:
> >
> >
> >> -----Original Message-----
> >> From: Jesus M. Rodriguez [mailto:[EMAIL PROTECTED]
> >> Sent: Tuesday, 23 September 2008 12:20 PM
> >> To: Coe, Colin C. (Unix Engineer)
> >> Cc: [email protected]
> >> Subject: Re: [Spacewalk-devel] API dev question
> >>
> >> On Mon, Sep 22, 2008 at 11:46 PM, Coe, Colin C. (Unix Engineer)
> >> <[EMAIL PROTECTED]> wrote:
> >> [snip]
> >>
> >> > Hi Jesus
> >> >
> >> > Thanks for this.  The learning continues :)
> >> >
> >> > CC
> >> >
> >>
> >> Colin,
> >>
> >> I put together this page about custom serializers. I hope it helps.
> >>
> >> https://hosted.fedoraproject.org/spacewalk/wiki/CustomSerializer
> >>
> >> jesus
> >>
> >
> > Just looking at the example provided, what provides 
> SimpleSerializer?  A
> > 'grep -r SimpleSerializer java/code/src/*' shows
> > 
> 'java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/util/
> Serializer
> > Helper.java' but I'm already importing that.
> >
> >    [javac] Compiling 1 source file to
> > /home/coec/git/spacewalk/java/build/classes
> >    [javac]
> > 
> /home/coec/git/spacewalk/java/code/src/com/redhat/rhn/frontend
> /xmlrpc/se
> > rializer/KickstartCustomOptionSerializer.java:58: cannot find symbol
> >    [javac] symbol  : class SimpleSerializer
> >    [javac] location: class
> > 
> com.redhat.rhn.frontend.xmlrpc.serializer.KickstartCustomOptio
> nSerialize
> > r
> >    [javac]         SimpleSerializer sl = new SimpleSerializer();
> >    [javac]         ^
> >    [javac]
> > 
> /home/coec/git/spacewalk/java/code/src/com/redhat/rhn/frontend
> /xmlrpc/se
> > rializer/KickstartCustomOptionSerializer.java:58: cannot find symbol
> >    [javac] symbol  : class SimpleSerializer
> >    [javac] location: class
> > 
> com.redhat.rhn.frontend.xmlrpc.serializer.KickstartCustomOptio
> nSerialize
> > r
> >    [javac]         SimpleSerializer sl = new SimpleSerializer();
> >    [javac]                                   ^
> >    [javac] 2 errors
> >
> > Apologies in advance if I'm being dense.
> 
> It is I that should apologize. I didn't proofread the document before
> posting it. The doc was written for a previous iteration of
> serializers :) before we did some refactoring.  I updated the doc with
> a more complete example, I hope it helps.
> 
> https://fedorahosted.org/spacewalk/wiki/CustomSerializer
> I've updated 
> Again, sorry about that.
> 
> jesus

Hi again

Ok, so far I have
java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/KickstartDataSer
ializer.java and
java/code/src/com/redhat/rhn/frontend/xmlrpc/system/profile/ServerProfil
eHandler.java, both attached.

I've updated
java/code/src/com/redhat/rhn/frontend/xmlrpc/handler-manifest.xml to
register the API namespace and
java/code/src/com/redhat/rhn/frontend/xmlrpc/serializer/SerializerRegist
ry.java to register the serialiser.

When I test the getCustomOptions API with a perl script I see the
debugging line "Custom, in API call" which I put in
ServerProfileHandler.java but I don't ever see "Called
KickstartCustomOption serializer" which I put in
KickstartDataSerializer.java.

So I guess the question now is, what am I doing wrong the the serialiser
is being ignored?

Thanks again and in advance

CC


NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.

Attachment: ServerProfileHandler.java
Description: ServerProfileHandler.java

Attachment: KickstartDataSerializer.java
Description: KickstartDataSerializer.java

_______________________________________________
Spacewalk-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/spacewalk-devel

Reply via email to