Dearcolleagues from Atlassian_ Community,
I'm new to Jira, and I would like to know if there is a possibility to to use SOAP Web Services in jira using Script Runner.
Someone can help ?
Regards Maikes
Do you mean call other system's SOAP APIs or implement a SOAP interface in Jira?
Hi @Nic Brough -Adaptavist- . I men both options!
I know that SOAP ans XML-RPC were depreciated!
SOAP and XML-RPC API Deprecation Notice, https://developer.atlassian.com/server/jira/platform/soap-and-xml-rpc-api-deprecation-notice/
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, so
I would strongly recommend not bothering - use the REST interface instead, it's a lot nicer than the old SOAP stuff.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your time @Nic Brough -Adaptavist- !
Could you please provide me information about the topics you had mentioned?
I couldn't find any information about that!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For getting SR to call out to SOAP services, I've used https://www.baeldung.com/groovy-web-services in the past.
For calling the standard Jira REST APIs, start at https://developer.atlassian.com/server/jira/platform/rest-apis/
And then if you find the Jira REST APIs lacking, you can write your own in ScriptRunner - https://scriptrunner.adaptavist.com/latest/jira/rest-endpoints.html
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am currently also trying to access a SOAP service via ScriptRunner.
Do you have some sample code how you managed to get it running?
I have tried it with the following, but I receive this error:
java.lang.NoClassDefFoundError: groovy/lang/GroovyObject
@Grab('com.github.groovy-wslite:groovy-wslite:1.1.2')
import wslite.soap.*
def url = "http://www.dataaccess.com/webservicesserver/numberconversion.wso"
def soapClient = new SOAPClient(url)
def message = new SOAPMessageBuilder().build({
body {
NumberToWords(xmlns: "http://www.dataaccess.com/webservicesserver/") {
ubiNum(123)
}
}
})
def response = soapClient.send(message.toString());
def words = response.NumberToWordsResponse
ScriptRunner is using groovy version 2.4.15
Thanks a lot
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Johannes,
did you get any further?
I'm also trying to call a SOAP via Scriptrunner
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.