[ 
https://issues.apache.org/jira/browse/SHINDIG-497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12639045#action_12639045
 ] 

suniluiit edited comment on SHINDIG-497 at 10/13/08 6:27 AM:
---------------------------------------------------------------

Hi Rajdeep,  can you  elaborate more on this issue please.
Actually when you type format=atom it returns a xml file and when you type 
format=xml it returns an atom response.
And if you want to change this then you need to change 
SocialApiGuiceModule.java 

    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.xml")).to(
        BeanXmlConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.json")).to(
        BeanJsonConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.atom")).to(
        BeanAtomConverter.class);
To

    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.xml")).to(
        BeanAtomConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.json")).to(
        BeanJsonConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.atom")).to(
        BeanXmlConverter.class);



      was (Author: suniluiit):
    Hi Rajdeep,  can you  elaborate more on this issue please.
Actually when you type format=atom it returns a xml file and when you type 
format=xml it returns an atom response.
And if you want to change this then you need to change 
SocialApiGuiceModule.java 

bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.xml")).to(
        BeanXmlConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.json")).to(
        BeanJsonConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.atom")).to(
        BeanAtomConverter.class);
to

bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.xml")).to(
        BeanAtomConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.json")).to(
        BeanJsonConverter.class);
    
bind(BeanConverter.class).annotatedWith(Names.named("shindig.bean.converter.atom")).to(
        BeanXmlConverter.class);


  
> ATOM format invalid
> -------------------
>
>                 Key: SHINDIG-497
>                 URL: https://issues.apache.org/jira/browse/SHINDIG-497
>             Project: Shindig
>          Issue Type: Bug
>          Components: RESTful API (Java)
>         Environment: All
>            Reporter: Rajdeep Dua
>            Priority: Blocker
>
> The Xml returned on a GET request from REST end point returns an invalid ATOM 
> XML ( see below )
> <personimpl>
>       <activities/>
>       <addresses/>
>       <books/>
>       <cars/>
>       <emails/>
>       <food/>
>       <heroes/>
>       <id>john.doe</id>
>       <interests/>
>       <isOwner>false</isOwner>
>       <isViewer>false</isViewer>
>       <jobs/>
>       <languagesSpoken/>
>       <movies/>
>       <music/>
>       <name>
>               <familyName>Doe</familyName>
>               <givenName>John</givenName>
>               <unstructured>John Doe</unstructured>
>       </name>
>       <phoneNumbers/>
>       <quotes/>
>       <schools/>
>       <sports/>
>       <tags/>
>       <turnOffs/>
>       <turnOns/>
>       <tvShows/>
>       <urls/>
> </personimpl>

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to