cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
112
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Phil Jaeger on 21-04-2010 06:02:03 PM
On CCM7 we have a phone service that points to a IPPhoneInput xml doc.  The user is able to input data and submit to the URL in that file just fine.  I am trying to create a parameter in CCM7 for this service that I append to the URL in the IPPhone URL that is sent.  So when I subscribe to the service on the phone configuration I will enter the data for this parameter.  When the user submits the input that they entered I want the parameter to be sent with it. 
 
Phone Service URL: http://Webserver1/CiscoIPPHoneService/IPPhoneInput.xml
Service Parameter:  siteID=ABCD
 
IPPhoneInput.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<CiscoIPPhoneInput>
<Title>Test</Title>
<Prompt>Test</Prompt>
<URL>http://Server:8080/customQts?</URL>
<InputItem>
<DisplayName>User Input</DisplayName>
<QueryStringParam>userInput</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>T</InputFlags>
</InputItem>
</CiscoIPPhoneInput>
 
 
I would like to see something like this sent to the application server http://Server:8080/customQts?userInput=1234&siteID=ABCD

Any assistance would be appreciated.  Thank you.

Subject: RE: How to pass a service parameter to web server.
Replied by: David Staudt on 21-04-2010 08:55:09 PM
You may be able to stuff the extra param in to the QueryStringParam, like this:
 
<QueryStringParam>siteID=A&amp;userInput</QueryStringParam>
 
You could also modify the URL itself, like:
 
<URL>http://Server:8080/customQts/A</URL>

Subject: RE: How to pass a service parameter to web server.
Replied by: Phil Jaeger on 21-04-2010 10:03:58 PM
Thanks for the input but the request still doesn't look correct.
 
/customQts?&siteID%3DA%26userInput=99999

Subject: RE: How to pass a service parameter to web server.
Replied by: David Staudt on 22-04-2010 10:58:24 PM
Looks like the following format works:
 
<CiscoIPPhoneInput>
<Title>Test</Title>
<Prompt>Test</Prompt>
<URL>http://10.88.131.137/customQts?siteName=A</URL>
<InputItem>
<DisplayName>User Input</DisplayName>
<QueryStringParam>userInput</QueryStringParam>
<DefaultValue></DefaultValue>
<InputFlags>T</InputFlags>
</InputItem>
</CiscoIPPhoneInput>

 
With result like:


GET /customQts?siteName=A&userInput=ds HTTP/1.1

Subject: RE: How to pass a service parameter to web server.
Replied by: Rizwan ul haq on 09-02-2012 07:08:02 AM
Dear david,
                  I want to pass phone ip or name as service parameter to webserver having the xml service but before doing that how to get the current phone information which is requesting the service. let me know with an example code 

Subject: RE: How to pass a service parameter to web server.
Replied by: Sergei Gorbunov on 09-02-2012 08:02:49 AM
1. If you want pass a phonename as parameter to a web service  you can include anywhere in url the '#DEVICENAME#' string and phone will replace it with his name.
2. All information about phone capabilities you can receive from request params as described in IPPS development notes 'http://developer.cisco.com/web/ipps/docs'.
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links