[ 
https://issues.apache.org/jira/browse/CXF-3483?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13028181#comment-13028181
 ] 

Pat Turner commented on CXF-3483:
---------------------------------

Hi Sergey,

I copied your test case 
(org.apache.cxf.jaxrs.provider.JAXBElementProviderTest.testOutAttributesAsElements)
 but with my JAXB annotated classes. It works :-)

However, my web service is returning a List of DTOs (signature below). I'm 
currently working out how to test the Provider with a List...

@WebService
@Path("/vehicles")
public interface IDashboardService {

    @WebMethod(operationName = "getVehicles")
    @WebResult(name = "vehicles")
    @GET
    @Produces({"application/xml", "application/json"})
        public List<VehicleDto> getVehicles();
}

> JSONProvider: Don't force attributes to have @ if users doesn't want them too
> -----------------------------------------------------------------------------
>
>                 Key: CXF-3483
>                 URL: https://issues.apache.org/jira/browse/CXF-3483
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAX-RS
>    Affects Versions: 2.3.4
>            Reporter: Pat Turner
>
> Jettison provides a configuration option to omit the '@' from attributes:
>   org.codehaus.jettison.mapped.Configuration.setSupressAtAttributes(boolean)
>   see Jettison Jira:
>   http://jira.codehaus.org/browse/JETTISON-2
> org.apache.cxf.jaxrs.provider.JSONProvider should also expose this property.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to