Hi,

I developed some web services using the HttpResource annotation.

So for example I have the annotation:

@HttpResource(location =
"/myService/{firstParameter}/{secondParameter}/{urlParameter}/{lastParameter}")


The problem has that my parameters can contain url and I solved the problems
with for example something like "http://";, double encoding it in
"http%253A%252F%252F".

In my development environment (Jboss under Windows) the method gets the
single encoded version "http%3A%2F%2F" and that's fine. But in the test
environment under linux the parameter in the URL is decoded twice and
actually the / in the URL is interpreted by cxf like a parameter separator.

Any suggestion on what can cause this? Maybe a Jboss or locale configuration
I need to change. I'm also wondering if it's possible to use normal
parameters in a rest service exposed with cxf instead of url template. there
is the queryParameter attribute in the @HttpResource but I have not found
any example on how to use it.


Thanks,
Vincenzo.

Reply via email to