Created
December 1, 2011 14:16
-
-
Save olamy/1417041 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// java | |
public class User { | |
private String username; | |
private String email; | |
} | |
@POST | |
register(User user) | |
// json send | |
{"username":"olamy","fullName":"olivier lamy","email":"[email protected]"} | |
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