12-13-2007 07:30 AM - edited 03-13-2019 04:48 PM
Hi!
I'm trying to get a list of devices via RisPort. I copied example from http://www.cisco.com/univercd/cc/td/doc/product/voice/vpdd/cdd/5_0/ccmdev/ccmdvch2.htm chapter Real-Time Information (RisPort)
Selecting Cisco Unified CallManager Real-Time Information , but service returning following xml:
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Server.userException</faultcode><faultstring>java.lang.IllegalArgumentException: argument type mismatch</faultstring><detail><ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">CUCM6</ns1:hostname></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
And my question is: How can I recognize, which argument? There are no any notes or details :-(
Many thanks for your ideas!!
ps. or is it posible to get that list any other way? (CUM6)
12-17-2007 07:16 AM
check your gmail~i sent my code to your email!
here is the xml String:
String strSoapMsg=""+
"
"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "+
"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+
"
"+ "
"
"
""+
"
"xsi:type=\"ns1:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" "+
"xmlns:ns1=\"tns:CmSelectionCriteria\">"+
"
"
"
"
"
""+
""+
"";
12-17-2007 07:29 AM
oh, many thanks!!
seems like that now it connects to right service ..or another one, now it responses with "No target service to authorize for!" message :-(
where can be problem? Im sending to /realtimeservice/services/RisPort# and SOAP Action is http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevices
01-03-2008 03:40 AM
Hi,
Can you please share me the code mailed to you by blueant06 for this issue. Thanks in advance
01-03-2008 03:47 AM
Hi!
Im really not sure, that i can share piece of somebody's else code, try to write him an email, sorry.
01-03-2008 06:58 AM
Hi!
Would you mind posting the header you are sending? Are you using HTTP or HTTPS? thanks!
cheers,
alej
01-03-2008 08:27 AM
ok, ill try to :-)
so, im sending to following address:
String url="https://"+getCmAddress()+":8443/realtimeservice/services/RisPort#";
and if youre sending to RIS, you need to specify more property: addRequestProperty("SOAPAction", "http://schemas.cisco.com/ast/soap/action/#RisPort#SelectCmDevices");
more headers: content-text/xml, POST method, Authorization Basic+BASE64encoded(user:pass)
...hope it helped, if no, ask ;-)
01-03-2008 10:18 AM
cool, thanks!
and then you open a socket to the CCM on port 8443 and send the request? Are you developing in java? Do you add certificate data to the request?
cheers,
alej
01-04-2008 04:51 AM
Hi,
Can you please send me your code to my email gharikir@gmail.com
01-05-2008 08:14 AM
Code on it's way!
01-06-2008 06:58 PM
Hi guys,
I am a Cisco IP Phone application developer also. I have some problem in retrieving phone info with SNMP, just tring to find another way to follow. Would you mind to mail me your code as a reference? Thank you very much.
email: christmasoldman@gmail.com
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