Skip to content

Instantly share code, notes, and snippets.

@olamy
Created December 1, 2011 14:16
Show Gist options
  • Select an option

  • Save olamy/1417041 to your computer and use it in GitHub Desktop.

Select an option

Save olamy/1417041 to your computer and use it in GitHub Desktop.
// java
public class User {
private String username;
private String email;
}
@POST
register(User user)
// json send
{"username":"olamy","fullName":"olivier lamy","email":"olamy@apache.org"}
cxf stack trace:
[javax.xml.bind.UnmarshalException: unexpected element (uri:"", local:"username"). Expected elements are <{}user>]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment