02-05-2013 05:39 PM - edited 03-14-2019 11:13 AM
I created a html file on an external http server for a form post method, like this:
<HTML>
<HEAD>
<TITLE>Cisco XML DB Access Function</TITLE>
</SCRIPT>
</HEAD>
<BODY>
<CENTER>
<FORM METHOD="post" action="http://172.31.254.248:9080/DBAccess">
<DIV>UCCX HTTP Triggering - DB Access<P>
User ID Number:
<INPUT NAME="UserID" TYPE="text" SIZE="20">
<INPUT TYPE="submit" VALUE="Send"></DIV>
</FORM>
</CENTER>
</BODY>
</HTML>
but I'll like to integrate this lines into script .aef file, so I created variable named buffer as StringBuffer type with this value:
{
StringBuffer buffer = new StringBuffer(300);
buffer.append("<CiscoIPPhoneInput>");
buffer.append("<Title>Cisco XML DB Access Function</Title>");
buffer.append("<Prompt>Please Enter your User ID</Prompt>");
buffer.append("<URL>http://172.31.254.248:9080/DBAccess</URL>");
buffer.append("<InputItem>");
buffer.append("<DisplayName>User ID: </DisplayName>");
buffer.append("<QueryStringParam>UserID</QueryStringParam>");
buffer.append("<DefaultValue></DefaultValue><InputFlags>N</InputFlags>");
buffer.append("</InputItem>");
buffer.append("</CiscoIPPhoneInput>");
return buffer;
}
But I have a problem on how to call this lines to be executed before Get Http Contact Info, how shuld I call this lines??
Regards,
Solved! Go to Solution.
02-08-2013 12:47 AM
Hi,
please try to be more descriptive. "not displayed" - what does this mean. What is displayed, then? What do you want to force on the otput?
G.
02-08-2013 04:46 AM
Well, at first the display on cisco phone you can see the form, after you input your user ID nothing does, you still seeing the form on the display, you can"t see the results XML page.
Sent from Cisco Technical Support iPhone App
02-08-2013 09:10 AM
I had tried with HTTP Forward step and Keyword Transform Document step, and something is wrong that is not sending the results to cisco phone, just need help to send dynamic page results to phone as xml code; I tried with html codes using a browser and it's working, I used Keyword Transform Document step, trying to do the same with cisco phone but something is wrong.
Please check my previous post with details.
Thanks,
02-08-2013 09:12 AM
Hi
If the phone rejects it, it's usually because your XML isn't perfect. The phones are VERY particular, and really pretty dumb.
I would browse to the page, use firefox with firebug, or chrome and inspect what comes back. Make sure it returns text/xml content type, and make sure the XML is parseable.
Aaron
02-08-2013 09:24 AM
Hi Aaron, thank you very much for your comments, that was the solution, this isuue was getting me crazy.
Regards,
02-08-2013 09:29 AM
No problem.... though you should be rating Gergely; he's been helping you for days and now I've stolen his points with my little one-liner!
Aaron
02-08-2013 09:32 AM
Of course, thank you both for your time and patience.
Regards,
02-08-2013 09:38 AM
No problem :-)
02-08-2013 12:35 PM
Aaron, thanks, you saved the day
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