The updateUser Web service calls the updateUser method in the underlying atg.userprofiling.ProfileServices implementation. The updateUser method behaves the same way as the handleUpdate method in the ProfileFormHandler (see The ProfileForm Class). Note that updateUser should be called only in the context of an HTTP request; otherwise an error occurs.
updateUser invokes the following methods:
preUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)doUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)postUpdateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse)
These methods are similar to the ProfileFormHandler’s preUpdateUser, updateUser, and postUpdateUser methods.
The updateUser method acts as follows:
Calls
preUpdateUser, which sets up aProfileUpdateEventbut does not fire it.Calls
doUpdateUser, which uses aRepo2Xmlupdate service to update the givenpProfileAsXML.Calls
postUpdateUser, which may revoke profile cookies if the user’sautoLoginproperty changes from true to false. It also fires aProfileUpdateEventif configured to do so (setgenerateUpdateEventsto true in theProfileServicescomponent).

