cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Announcements

747
Views
0
Helpful
2
Replies
JeroenNijs
Beginner

CreateXMLDocument to webserver with authentication

I'm trying load an XML document into my UCCX script to have names on calling numbers.

For this I'm using the CreateXMLDocument step in the Editor.

 

The URL i'm trying to parse is the following, so with username and password before the servername

 

http://username:password@server/GetContact?number=3232323232

When I try to do this, I always get an authentication failed (401) on the WebServer.

In UCCXEditor, when I check the variable that was filled in by the CreateXMLDocument step, it has following content.

 

§com.cisco.wf.steps.io.XMLDocument§com.cisco.wf.steps.io.XMLDocument@0

 

Is there any way to get the URL below to work so that I can parse the XML document with authentication on the server?

 

I've already tried to disable authentication an then I could get the XML file without any issue.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Chintan Gajjar
Collaborator

Hi,

Please try with Make REST Call STEP available in UCCX script editor.It has basic HTTP authentication available built in, and the Response will be XML string which can be parsed or worked upon later in the script.

 

View solution in original post

2 REPLIES 2
Chintan Gajjar
Collaborator

Hi,

Please try with Make REST Call STEP available in UCCX script editor.It has basic HTTP authentication available built in, and the Response will be XML string which can be parsed or worked upon later in the script.

 

View solution in original post

Hello,

 

 

Thanks for the answer.

Using The REST API did the trick.

 

Kind regards

Create
Recognize Your Peers
Content for Community-Ad