01-29-2008 10:52 PM - edited 03-13-2019 04:55 PM
Hi all:
I had met this problem, i can get only one phone with this request:
"<soapenv:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
"xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:soap=\"http://schemas.cisco.com/ast/soap/\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\"> " +
"<soapenv:Header>" +
"<AstHeader xsi:type=\"soap:AstHeader\">" +
"<SessionId xsi:type=\"xsd:string\">1234567</SessionId>" +
"</AstHeader>" + "</soapenv:Header>" + "<soapenv:Body>" +
"<soap:SelectCmDevice soapenv:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">" +
"<CmSelectionCriteria xsi:type=\"soap:CmSelectionCriteria\">" +
"<SelectBy xsi:type=\"xsd:string\">Name</SelectBy>" +
"<Status xsi:type=\"xsd:string\">Registered</Status>" +
"<Class xsi:type=\"ns1:DeviceClass\">Phone</Class>" +
"<Model xsi:type=\"xsd:unsignedInt\">255</Model>" +
"<SelectItems>" + "<Item>" + macadd +
"</Item>" + "</SelectItems>" + "</CmSelectionCriteria>" +
"</soap:SelectCmDevice>" + "</soapenv:Body>" +
"</soapenv:Envelope>";
But how can i to get multiple phones in a request? i had tried many methods, but all of them are not work. Thanks for any helps!
01-31-2008 05:50 PM
Does anybody know that? Thanks in advanced!
01-31-2008 07:50 PM
If you don't have any items in selectItems, it will return you first 200 phones.
01-31-2008 08:06 PM
Hi msabir:
Thanks for your help. Yea,i don't want to get the first 200 phones, i just want to get the phones which are listed in the items.For example:
"
"
"
"
,then i just want to get the four phones, but when i do like this,i always just got one phone,why is that? Then i changed to use Array like this:
"
http://schemas.xmlsoap.org/soap/encoding/\">" + "
"
""+
"
"
"
"
"
"
"
""+
"
"
""+
"
"
""+
"
"
""+
""
But it alway throws this error:
why? Thank you very much!
02-20-2008 12:25 AM
Does anybody know that? Any help is very precious!
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: