Dear All,
I want to extend the Jira API and run as a Webservice in jira server.
I did the following steps:
1. Create a Dynamic Web Deployment Project in Eclipse.
2. Generate the following codes.
3. Run wsgen command to genarate the jaxws files.
4. Create .WAR file from eclipse.
5. Copy this file to <Jira-Installation-Path>\webapps (ex: D:\Program
Files\Atlassian\JIRA 4.0.1\webapps)
6. Start Jira
I can browse the service through url (
http://localhost:8090/
MyJiraService/SoapExtensionImpl?wsdl)
My problem is that I am getting token manager as null when I am trying
to login from my client application.
public class SoapExtensionImpl implements SoapExtension,
JiraSoapTokenResolver
{
private TokenManager tokenManager;
private final ProjectService projectService;
private final IssueService issueService;
private final UserService userService;
private final SchemeService schemeService;
private final AdminService adminService;
private final SearchService searchService;
private final ProjectRoleService projectRoleService;
private final IssueConstantsService issueConstantsService;
public SoapExtensionImpl(TokenManager tokenManager,
ProjectService projectService, IssueService issueService, UserService
userService, SchemeService schemeService, AdminService adminService,
SearchService searchService, ProjectRoleService projectRoleService,
IssueConstantsService issueConstantsService)
{
this.tokenManager = tokenManager;
this.projectService = projectService;
this.issueService = issueService;
this.schemeService = schemeService;
this.userService = userService;
this.adminService = adminService;
this.searchService = searchService;
this.projectRoleService = projectRoleService;
this.issueConstantsService =
issueConstantsService;
}
public void setTokenManager(TokenManager tokenManager)
{
this.tokenManager = tokenManager;
}
@Override
public String login(String username, String password) throws
RemoteException,
RemoteAuthenticationException {
// TODO Auto-generated method stub
return tokenManager.login(username, password);
}
}