I am trying to get a my jira plugin to call a simple web service within a jira plugin, but I am not having any luck.
I generated the classes using wsimport:
wsimport -keep -verbose http://localhost:5382/Service1.svc?wsdl
The code to use the service looks something like:
private String CreateIssue() { IssueService service = new IssueService(); IIssueService binding = service.getBasicHttpBindingIIssueService(); String issueID = binding.createIssue(type, description, steps, expected, workaround, storage, docType, actions, tools, external, repeatability, workaroundType, severity, pmSeverity, products, extensions, versions, os, status, project, resolution, fixversions); return issueID; }
Very simple and straight forward. Unfortunately when I try and call this code I get a: ClassNotFoundException: Provider com.sun.xml.ws.spi.ProviderImpl
After reading this: https://answers.atlassian.com/questions/16435/use-jax-ws-client-in-jira-plugin-v2
I feel like there is classloader issue or something I have tried with jaxws-rt as a dependency and without and nothing seems to work.
Community moderators have prevented the ability to post new answers.
Hi,
Check out this answer - https://answers.atlassian.com/questions/44457/implement-jax-ws-in-jira-5-plugin/97748
With some hackery, I was able to get JAX-WS working from within a JIRA plugin. If you have the option, using Axis would be a much nicer experience.
Hello,
Have a look at my article, how to call a SOAP web service from Jira using jax-ws in Jira 7.2.x
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
SOAP client web servce runtime is Apache Axis? You must specify some runtime in client class generation process from wsdl. If it is Axis, import dependency into pom.xml
<dependency> <groupId>axis</groupId> <artifactId>axis</artifactId> <version>1.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>axis</groupId> <artifactId>axis-jaxrpc</artifactId> <version>1.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>axis</groupId> <artifactId>axis-saaj</artifactId> <version>1.3</version> <scope>provided</scope> </dependency> <dependency> <groupId>axis</groupId> <artifactId>axis-wsdl4j</artifactId> <version>1.5.1</version> <scope>provided</scope> </dependency>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think the client is using JAXWS not Apache axis. Can I generate an axis client from a wsdl?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.