07-17-2015 05:20 AM
Hi,
We had our CRM which used Cisco OCX to communicate with Cisco dialer (CTIOS). As we come to know cisco OCX has been changes to finesse, we need the same to be used in our web page in place of ocx to communicate with cisco dialer.
I am new to finesse, gone through various blogs and guide. As instructed downloaded the nongadgetsample and imported all the JS file in project. Also developed the page same as index.html. While running the application entering the domain name with FQDN, get a response code as 404 some time as 0. Given the finesse server details in finessenongadget.js as well as the basic authentication. But still not success.
Need help in accessing the same, if possible sample code to be used to do same.
I am able to access the finesse server https://hostname/finesse/api/User/UserID through browser after passing the basic authentication.
Also able to check through fiddler, but only GET command is working whereas while using PUT command get response code as 401.
Please find the below response code received from fiddler for PUT command
<ApiErrors>
<ApiError>
<ErrorType>Invalid Authorization User Specified</ErrorType>
<ErrorData>IC159</ErrorData>
<ErrorMessage>The user specified in the authentication credentials and the uri don't match</ErrorMessage>
</ApiError>
</ApiErrors>
Solved! Go to Solution.
07-22-2015 10:16 AM
Are you following the example of the Web Service gadget using 'gadgets.io.makeRequest'?
If the return code is successful, and it sounds like it is. Then you will need to parse the returned data. The sample gadget is set to use XML as an accept header. This should work from what I see, but make sure the service is returning XML.
Also, make sure the call is successful. You might want to try it out in another utility first. It sounds like you are doing that.
07-20-2015 12:55 PM - last edited on 03-05-2021 10:00 AM by dekwan
As I'm sure you noticed, the description for the User object.
https://developer.cisco.com/docs/finesse/#!user
I'm curious if you are trying to access a user object, that is different that the credentials being used?
For example, if use A is logged in, you cannot access use B info.
07-20-2015 10:23 PM
Hi,
While I try to access the https://hostname/finesse/api/User/UserID through, it ask for authentication, giving authentication of UserId, it doesn't authorize while giving admin authentication it's authorize and show the details of user. When at the same time when try to use PUT command, it doesn't respond even not with admin authentication nor with User authentication.
Regards,
Ajay jha
07-21-2015 07:14 PM
Are you trying to use CCE or CCX?
g.
Gary Olmsted
Finesse Architect
CBABU - Contact Center Software Development
07-21-2015 10:10 PM
Hi Gary,
we have an webcrm application where we used OCX file to integrate cisco dialer (CTIOS). Now since finesse has come, want to integrate same in our web CRM. So download the nongadget sample and upload all the js as mentioned in the nongadget readme and pdf. Also developed the webpage as same as index.html given in the sample. All the js functioned is getting loaded with appropriate value, but finally get's an error Exception trying to parse xml: <wrapper><body xmlns="http://jabber.org/protocol/httpbind" xmlns:NS1="" NS1:xmlns:xmpp="urn:xmpp:xbosh" hold="1" ver="1.9" to="mumfinpub.suthuccedc.com" secure="true" wait="30" xmlns:NS2="" NS2:xmpp:version="1.0" rid="3311413300" /></wrapper>
in jabberwerx.js.
First I thought might be api is not working but when checked in postman I get proper response for all the command such as GET,PUT and POST.
Please help me in integrating the finesse in our web crm.
Regards,
Ajay Jha
07-22-2015 10:16 AM
Are you following the example of the Web Service gadget using 'gadgets.io.makeRequest'?
If the return code is successful, and it sounds like it is. Then you will need to parse the returned data. The sample gadget is set to use XML as an accept header. This should work from what I see, but make sure the service is returning XML.
Also, make sure the call is successful. You might want to try it out in another utility first. It sounds like you are doing that.
07-24-2015 06:06 AM
Hi ewindgat,
Thanks a lot. I have resolve the issue, I have commented the line event_connect() in sample.js under (form-agent-signin).submit function and uncomment the line _finesse.signIn(_username, _extension, true, _signInHandler, _signInHandler);
xml parse error get vanished. Also I was able to login and able to make calls.
Only need help in retrieving BuddyName and other info while calls come to it. Any help in reading the same.
Regards,
Ajay Jha
07-31-2015 06:30 AM
Hi ewindgat,
Please help me in getting callvariable value popup in nongadget. As I want to integrate finesse in my asp.net application.
Regards,
Ajay Jha
08-12-2015 04:24 PM
var callVars = dialog.getMediaProperties();
//Then, access ECC variables like this:
somevariable = callVars["user.ecc_variable_name"];
//set a variable
var options = {};
currdialog.updateCallVariable(name, value, options);
07-21-2015 12:05 AM
Thanks ewindgate,
Now I am able to get the response through finesse api, but at the same time if I am using the nongadget sample, get an error as Exception trying to parse xml: <wrapper><body xmlns="http://jabber.org/protocol/httpbind" xmlns:NS1="" NS1:xmlns:xmpp="urn:xmpp:xbosh" hold="1" ver="1.9" to="mumfinpub.suthuccedc.com" secure="true" wait="30" xmlns:NS2="" NS2:xmpp:version="1.0" rid="3311413300" /></wrapper>
in jabberwerx.js.
Please respond to same
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