In putRole, the parameter role has the type WSRole and returns type WSRole. putRole updates an existing object; if the specified role does not exist, a new one is created.

Before adding users and roles, note that there is a server-side configuration which specifies the default roles that a new user can receive. See JasperReports Server Administrator Guide for details.

To call putRole:

WSRole role = new WSRole();
WSRole value = binding.putRole(role);

The return is:

String getRoleName()
String getTenantId()
WSUser[] getUsers()
String getUserName()
String getFullName()
String getPassword()
String getEmailAddress()
Boolean getExternallyDefined()
Boolean getEnabled()
Date getPreviousPasswordChangeTime()
String getTenantId()
WSRole[] getRoles()