This page tells you how to update your SOAP based-client application code when updating from Crowd 2.0.x to Crowd 2.1.0.
SOAP API is no longer available
SOAP API has been removed in Crowd 5.0. For information on how to migrate to REST API, see Crowd SOAP to REST migration guide.
Add a dependency on crowd-integration-client-api
.
1 2<dependencies> <dependency> <groupId>com.atlassian.crowd</groupId> <artifactId>crowd-integration-client-api</artifactId> </dependency> </dependencies>
Some of the classes have moved to a different package.
Class | Update |
---|---|
SecurityServerClient | Old package:
New package:
|
UserConstants | Old package:
New package:
|
SearchContext | Old package:
New package:
|
PasswordCredential | Old package:
New package:
|
<All exception classes> | Old package:
New package:
|
As noted above the exception classes have moved to a new package (com.atlassian.crowd.exception
). As well as this the ObjectNotFoundException
is now separated into UserNotFoundException
, GroupNotFoundException
, and DirectoryNotFoundException
. Methods which previously threw an ObjectNotFoundException
will now throw one or more of these exceptions classes.
Some other changes to exception throwing to highlight:
SecurityServerClient#findPrincipalByName
now throws an InvalidAuthenticationException.SecurityServerClient#searchGroups
and SecurityServerClient#searchRoles
also throws an InvalidAuthenticationExceptionRate this page: