cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3911
Views
5
Helpful
5
Replies

How to custom java class in to ccx system with uccx 11.5.1

ChienNX
Level 1
Level 1

Hi everybody !

I want upload custom java va class in to system. I do step by step.
Step 1: Complie java file to class file: javac SBDUtils.java
Step 2 : Build jar file: jar cf SBDUtils.jar SBDUtils.class
Step 3 : Upload jar file to menu Applications/Document Manager/default/classpath
Step 4: into tab System/Custom file configuration I move jar file from Available class path to Selected class path and click update
Step 5: Restart service UCCX Engine and UCCX Administration
Step 6: Restart CCX editor
I create new aef file, create new variable but I can not look type SBDUtils in combobox Variable type. But I look at variable type below
Please help me.
I use uccx 11.5 and jdk version 1.7.0_79. But Datasheet suggest 1.7.0_101
Untitled.png
 
 
 
2 Accepted Solutions

Accepted Solutions

Chintan Gajjar
Level 8
Level 8

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.

View solution in original post

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.

 

View solution in original post

5 Replies 5

Chintan Gajjar
Level 8
Level 8

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.

Thank you for hepl me.

When use plannet Make rest call

I user method = POST with dataType = json. But ccx editor not accepted syntax json

Please help me!

 

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.

 

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 !

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.