Hi
On 17/06/14 16:25, Jari Fredriksson wrote:

Hello all.

I have used Apache CXF with SOAP earlier with success.

Now I need to write a client for a REST service. The service has
object's attribute names in Finnish language, and they contain illegal
characters for Java source code. Also there are other reasons that I
want to rename the attribute names.

CXF web site and tutorials refer to BookService and Book.class but there
is nowhere to find a definition for that Book.java. For JSON. I have
seen a Book.java using XML-annotations but I have never seen a Book.java
for JSON.

How does the Book.java looks like? I need something like this

class Book {

     @JsonProperty(name="tunnus")
     long id;

}

Is there such? Must be?

AFAIK Jackson JSON provider recognizes such property

Cheers, Sergey

Reply via email to