When exposing a webservice using the Atom provider and xml the <?xml
version=”1.0” encoding=”utf-8”?> directive is not added.
Is there a way to fix this?

the method exposed is:

    @GET
    @Path("/{skus}")
    public Feed getProductDetails(...){
         ...
        Feed feed = abdera.newFeed();
        feed.setTitle("TomTom Feed");
        feed.setSubtitle("ProductDetails feed");
        ...

       return feed;
      }



and in the spring conf:

    <jaxrs:server id="atomProductRestWebService" address="/product">
        <jaxrs:serviceBeans>
            <ref bean="atomProductWebService" />
        </jaxrs:serviceBeans>
        <jaxrs:providers>
            <bean class="org.apache.cxf.jaxrs.provider.AtomFeedProvider" />
        </jaxrs:providers>
    </jaxrs:server>

where atomProductWebService is the class with the getProductDetails
implemented.

Is there something special I need to add?



Thanks,
Vicio.

Reply via email to