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

Created by: Keith Lunn on 02-11-2009 08:20:10 PM
Hello Folks,
Env=CUCM 6.13, RIS port request to get status on a single phone by device name.
Programming Language: WSH 5.7/cscript; JScript
This is my first attempt on creating a RIS port request and after reading the chapter in the XML Devleopers guide (v6.01)- I am throughly confused!!

Here is my SOAP payload I am sending - it returns http error 500 - can someone give me some guidence on how to debug?
 
[Execution Example]
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
RIS SOAP Request=[
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="<a>http://schemas.xmlsoap.org/soap/envelope/</a>]"
 xmlns:soapenc="<a>http://schemas.xmlsoap.org/soap/encoding/</a>]"
  xmlns:tns="<a>http://schemas.cisco.com/ast/soap/</a>]"
   xmlns:types="<a>http://schemas.cisco.com/ast/soap/encodedTypes</a>]"
    xmlns:xsi="<a>http://www.w3.org/2001/XMLSchema-instance</a>]" xmlns:xsd="<a>http://www.w3.org/2001/XMLSchema</a>]">
<soap:Header>
<tns:AstHeader id="id1"> <SessionId xsi:type="xsd:string">600</SessionId>
</tns:AstHeader>
</soap:Header>
 <soap:Body soap:encodingStyle="<a>http://schemas.xmlsoap.org/soap/encoding/</a>]">
 <tns:SelectCmDevice>
 <StateInfo xsi:type="xsd:string" />
 <CmSelectionCriteria href="#id1"/>
 </tns:SelectCmDevice>
 <tns:CmSelectionCriteria id="id1" xsi:type="tns:CmSelectionCriteria">
 <MaxReturnedDevices xsi:type="xsd:unsignedInt">200</MaxReturnedDevices>
 <NodeName xsi:type="xsd:string" xsi:nil="true"/>
 <SelectBy xsi:type="tns:CmSelectBy">Name</SelectBy>
 <SelectItems href="#id2" />Name</tns:CmSelectionCriteria
 <soapenc:Array id="id2" soapenc:arrayType="tns:SelectItem[1]">
 <Item href="#id3"/><Item xsi:null="1"/>
 </soapenc:Array>
 <tns:SelectItem id="id3" xsi:type="tns:SelectItem">
 <Item xsi:type="xsd:string"/>SEP0017593F52C4</Item>
 </tns:SelectItem>
 </soap:Body>
 </soap:Envelope>
 ] Len[1254] SEQ#[600]
Transmitting RIS Request to [https://613pub:8443/realtimeservice/services/RisPort/] for UID[user1]
RIS Return HTTP Status=>500
A critical RIS HTTP Error has occurred. Status=[500]
 

 
Other questions:
#1 - I have noticed in the forum many people are not coding the SOAP Header and their code seems to execute ok - but the xml developers guide shows a header example with a session ID - so if I don't include this, am I creating a problem?
 
#2 - MaxReturnedDevices - I have seen users code 10 - 1000 for this parm - what is the exact meaning of this parm. I thought you could only query a max of 200 devices at a time so what is the purpose of this parm? Why would someone code 1000 for this parm?
 
#3 - an array of items to get status for. The xml developers guide shows the use of #id2, #id3 - what are these ids used for and what is their significance? Example from guide:
#4 - What is this: ="tns:SelectItem[2]" and what significance does the "2" have?

Array of Items for Which Search Criteria Are Specified

The following example specifies an array that contains the IP Address or Device Name of the items for
which a real-time status is required.

23. <SelectItems href="#id2" />Name or IP</tns:CmSelectionCriteria
24. <soapenc:Array id="id2" soapenc:arrayType="tns:SelectItem[2]">
25. <Item href="#id3"/><Item xsi:null="1"/>
26. </soapenc:Array>
27. <tns:SelectItem id="id3" xsi:type="tns:SelectItem">
28. <Item xsi:type="xsd:string"/></tns:SelectItem>
29. </soap:Body>
30. </soap:Envelope>
 
Thanks for any guidenace and ideas and suggestions!!!

Keith
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