CloudChoir - Part 2: how to use
"ServiceNow 'integration-as-a-service'"
YouTube DEMO video:
http://youtu.be/ll-2pdSBhdI
The SOAP endpoint of our CloudChoir:
https://www.cloudchoir.com:8443/CloudChoirAxis2/services/CloudChoirAxis2?wsdl
Basic auth used:
Name: testuser
Password: konafornia@
Any ServcieNow instance can use CloudChoir's out-of-box Runbooks for FREE. CloudChoir will count how many calls made from each instance, nothing else. (after each SOAP call, caller will be informed about Call Counter, inside the SOAP's respond.)
Sample data used in DEMO (before encoded into base64):
command:
HelloWorld
input:
<root><title>Mr</title><fullname>Stanley He</fullname></root>
Fro your reference, Java source code "HelloWorld" Runbook:
import groovy.util.XmlSlurper
//Integration Pack - parent class
class HelloWorld {
static String IntegrationCall(String jInput) throws Exception{
def gInput = new XmlSlurper().parseText(jInput)
def title = gInput."title".text()
def fullname = gInput."fullname".text()
return myJavaClass.sGreet(title, fullname)
}
}
class myJavaClass
{
public static String sGreet(String sTitle, String sName)
{
return "Hello(v3): " + sTitle + " " + sName;
}
}
No comments:
Post a Comment