cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4758
Views
16
Helpful
30
Replies

Create Cutsom Java class that calls Rest Service in Cisco call studio

Hello,

I am new on cisco call studio. I want to create one java custom code that calls rest service and  want to use this code in cisco call studio application.Please let me know the steps for creating above scenerio. If you guys have some sample example or document it will be great

Thanks

30 Replies 30

Quigath
Spotlight
Spotlight

I got an AWS connection working using org.apache.cxf.jaxrs.client.WebClient. The jar dependencies were a bit messy to figure out but it does work. I assume you already know how to call java code from your CS app.

WebClient client = WebClient.create(endpoint, providers);

client.accept(contentType).type(contentType).path(canonicalUri);

client.headers(createHeaders());

Response response = client.post(requestParameters);