It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Is it possible to merge JIRA Soap session and Http session?

Hello :)

I try to start jira in web browser component in swing application.

It's not problem but I would like to login JIRA from code without login form. I do that by soap services.

It's possible to merge soap session with http session? (When jira page is open user is login)?

Thanks for your help!!!

2 answers

1 accepted

0 votes
Answer accepted

The solution for this problem is using HttpClient and invoke jira page as POST with os_username and os_password parameteres. The response return the cookis with the JSESSIONID.

After that is necessery to set JSESSIONID in cookies tree of web browser component.

Soap is just a protocol OVER http. So a "soap session" IS a HTTP session.

Excerpt from real code:

JiraSoapServiceServiceLocator loginLocator = new JiraSoapServiceServiceLocator();
JirasoapserviceV2SoapBindingStub loginStub = (JirasoapserviceV2SoapBindingStub) loginLocator.getJirasoapserviceV2();
loginStub._setProperty(Stub.ENDPOINT_ADDRESS_PROPERTY, loginEndpoint);

String token = loginStub.login(user, passwd);

// this is the token required by all soap services ...

Thank for the answer.

I have the same code to login but, I my application I have :

WebBrowserComponent webBrowserComponent = new WebBrowserComponent();
webBrowserComponent.navigate("url_to_jira");
panel.add(webBrowserComponent);

This code open jira page and requiring loging. I would like to login by sopa service and modify http head

or page DOM, or cookies to open jira page as logged user.

It is possible?

As WebBrowserComponent I using Native Swing - The DJ project.

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira Align

Best Practices in Jira Align

Hello Jira Align customers! In order to better serve you on your journey with Jira Align, the Community team has worked with the Jira Align team to curate the content in this collection to better s...

45 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you