cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1944
Views
0
Helpful
23
Replies

Call a StringBuffer type

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,

23 Replies 23

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.

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

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,

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

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Hi Aaron, thank you very much for your comments, that was the solution, this isuue was getting me crazy.

Regards,

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

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Of course, thank you both for your time and patience.

Regards,

No problem :-)

Aaron Please remember to rate helpful posts to identify useful responses, and mark 'Answered' if appropriate!

Aaron, thanks, you saved the day