Hi
On 24/01/12 16:53, Klevenz, Stephan wrote:
Hi,

I'm new to CXF and have a question about the REST part. Just for context the 
GoogleCode project odata4j [1] wants to support CXF as an alternative JAX-RS 
implementation in parallel to Jersey which is supported, too. The CXF version 
we are using is the latest and greatest 2.5.1.

To my question: While execution of full integration JUnit test which is 
launching the CXF WebClient and a Jetty server the URI [2] received by the 
server does not map to any method of a resource class. The log [3] prints the 
path of the URI and it seems that it is not decoded correctly. How can I change 
this behavior?

Maybe I have just overseen documentation and would appreciate any hint.

I think it is a WebClient bug in that it wrongly encodes "(" & ")".
That will be fixed shortly.
What I'm not sure is what to recommend as a workaround. Perhaps, if feasible, add a handler for

@Path("categories%28{id}%29/products")

which will deal with the clients encoding too eagerly.

Cheers, Sergey


Regards,
Stephan

[1] http://code.google.com/p/odata4j/
[2] uri = http://localhost:8810/test/test.svc/categories(1)/products

[3]

WARNUNG: No operation matching request path 
"/test/test.svc/categories%281%29/products" is found, Relative Path: /, HTTP 
Method: GET, ContentType: */*, Accept: application/xml,. Please enable FINE/TRACE log 
level for more details.

Reply via email to