Hello
can you help me send a SOAP request from the SR?
I tried this, but is not working:
@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
assert words == "one hundred and twenty three "
This question has been asked and answered previously in this community post.
For your information, the SOAP and XML-RPC support have been deprecated since Jira 6.0.
You will need to create a REST request to invoke the SOAP service.
Thank you and Kind regards,
Ram
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.