Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

SOAP Web Service Client in Jira 8 plugin

Hello, everyone!

I hope these samples of a SOAP web service client usage in a Jira custom plugin help you in your implementations .

You can find complete code here:

There are two part of the project:

  • jira-ws-plugin – the custom Jira plugin (8.13.6) with Axis2 SOAP web service client and its scheduled background job runner.

  • producing-ws-server – the Spring-boot sample web service server for the jira-ws-plugin demo. To start it just execute mvn spring-boot:run in comman line. You can check it with url http://localhost:8888/ws/currency.wsdl


Install the Atlassian SDK and configure your environment.

Create a new Jira plugin project.

Add the maven plugin to generate classes.

It takes as input a WSDL and generates client stubs for calling a web service matching the WSDL.


Add Axis2 dependencies 

<!-- Web Service -->

Some of it (with scope provided) to exclude the enforcer plugin "banned" dependencies

Also add to the Import-Package tag the following dependency:


Add the SOAP Web Service client component

We can run this service from the other part of the plugin

public class ExchangeRateServiceImpl implements ExchangeRateService {

private static final Logger log = LoggerFactory.getLogger(ExchangeRateServiceImpl.class);

public double exchangeRateUSD() {
double currencyValue = -1;
try {
CurrencyPortServiceStub stub = new CurrencyPortServiceStub();
// Authentication
// setAuth(stub, username, password);
CurrencyPortServiceStub.GetExchangeRateRequest request = new CurrencyPortServiceStub.GetExchangeRateRequest();
CurrencyPortServiceStub.GetExchangeRateResponse exchangeRateResponse = stub.getExchangeRate(request);
currencyValue = exchangeRateResponse.getExchangeRate().getCurrencyValue();
} catch (RemoteException rex) {
}"=============================");"USD exchange rate: {}", currencyValue);"=============================");
return currencyValue;

Optional code for the component execution

Manually with the REST resource ( - http://<JIRA_BASE_URL>rest/exchangerate/1.0/message

with the http GET response:

<value>USD exchange rate: 3.0</value>

or it can be scheduled as the background job runner (



Log in or Sign up to comment
Community showcase
Published in Jira Software

Upcoming changes to epic fields in company-managed projects

👋 Hi there Jira Community! A few months ago we shared with you plans around renaming epics in your company-managed projects. As part of these changes, we highlighted upcoming changes to epics on...

14,627 views 37 46
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