Jira WebService Extension

22 views
Skip to first unread message

Tapas

unread,
Nov 3, 2010, 12:05:37 AM11/3/10
to jira-extended-webservice
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);
}
}

Ath

unread,
Nov 4, 2010, 4:43:46 PM11/4/10
to jira-extended-webservice


On Nov 3, 5:05 am, Tapas <monta...@gmail.com> wrote:
> Dear All,
>
> I want to extend the Jira API and run as a Webservice in jira server.
> I did the following steps:

We are a questions and support board for jira-extended-webservice,
please keep your questions within the confines of this project,

but more important, what do you want to achieve with your service that
Jira nor this Extension provides? It is very possible it either
already done, or it can be quite easily added here.
Reply all
Reply to author
Forward
0 new messages