10-02-2017 03:42 AM - edited 03-15-2019 06:32 AM
Hi everybody !
Solved! Go to Solution.
10-03-2017 01:57 AM
after you are done with creating jar file/class file, make sure you
1) upload it to Cisco UCCX server
2) make sure you add those files in classpath
3) make you you restart Cisco UCCX Engine and Administration service.
after this,
4) go and login to UCCX editor, it should not be Anonymous but should be a valid UCCX user.
5) create a new script, create a variable, and in Type field put fully qulified class name of the type of class you want to create object of and press enter.
if you get an error then you class file is either not rendered by UCCX or your UCCX script editor is not able to download those jar file because of some security issues.
the class name by default does not pop up under drop down, you have paste the FQCN (including package) into the Type and press enter. if accepted all good.
10-04-2017 06:02 AM
The Make Rest Call accepts only valid Content Type (https://en.wikipedia.org/wiki/Media_type) :
In your case you have to set it to "application/json" and if the response is also in json, you will need some custom code to parse that output as well.
10-03-2017 01:57 AM
after you are done with creating jar file/class file, make sure you
1) upload it to Cisco UCCX server
2) make sure you add those files in classpath
3) make you you restart Cisco UCCX Engine and Administration service.
after this,
4) go and login to UCCX editor, it should not be Anonymous but should be a valid UCCX user.
5) create a new script, create a variable, and in Type field put fully qulified class name of the type of class you want to create object of and press enter.
if you get an error then you class file is either not rendered by UCCX or your UCCX script editor is not able to download those jar file because of some security issues.
the class name by default does not pop up under drop down, you have paste the FQCN (including package) into the Type and press enter. if accepted all good.
10-04-2017 03:29 AM
10-04-2017 06:02 AM
The Make Rest Call accepts only valid Content Type (https://en.wikipedia.org/wiki/Media_type) :
In your case you have to set it to "application/json" and if the response is also in json, you will need some custom code to parse that output as well.
10-04-2017 07:26 PM
I use method = POST, datatype is json but response is XML data.
Please send some template data in planet Make REST Call use method = POST and response return data is application/XML.
Thank you supported me !
10-05-2017 02:06 AM
As far as i know, that is not going to work.
The built in UCCX Make Rest Call Step is only capable of handling the Request and Response of Same type (i.e XML or JSON). There is no separate "Accept" header available in the rest call step and not sure if you can try passsing multiple content type.
But if you have more advance HTTP request/response structure, we have to take the custom java code route to achive that.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide