Hi

Sorry, your messages have been caught by the spam filter.
Can you please use JAXRSClientFactoryBean directly please, may be there're some overloading issues among the factory utility methods..
Trying to do a quick test now...
cheers, Sergey

----- Original Message ----- From: "Vincenzo Vitale" <[email protected]>
To: <[email protected]>
Sent: Monday, June 15, 2009 11:59 AM
Subject: Problem with JAXRSClientFactory after updating to 2.2.2


Hi,
after updating to CXF 2.2.2 the  JAXRSClientFactory seems to not work
anymore having the entity field returned always to null.

Here my code:


       ArrayList<MessageBodyReader<Response>> providers =
               new ArrayList<MessageBodyReader<Response>>();
       providers.add(new ResponseProvider());

       // We also need to pass the provider for deserializing the response
       // object.
       tridionQueryServiceProxy =
               JAXRSClientFactory.create(getTridionProxyBaseAddress(),
                       TridionQueryService.class, providers);



and than:

tridionProxyResponse
= tridionQueryServiceProxy.executeQuery(query.toString(), publicationId);


The common interface between server and client is:

@Path("/query-service")
@Produces("application/xml")
public interface TridionQueryService {

   /**
    * Execute a generic query in the Tridion system through a POST request.
    *
    * @param query The query to be executed.
    * @param publicationId The publication to use (in a normal Tridion
    *        implementation the publication id specify the channel to use).
If
    *        the parameter is not passed a default value (different
depending
    *        on the implementation) will be used.
    * @return A {...@link Response} object containing the xml response
received
    *         from Tridion..
    */
   @POST
   @Path("/execute")
   Response executeQuery(@FormParam("query") String query,
           @FormParam("channel") String publication)
           throws WebApplicationException;



Is someone experiencing the same problem. Is it a bug in CXF?



Thanks,
Vicio.


Reply via email to