cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
789
Views
0
Helpful
10
Replies

RisPort problems - argument type mismatch

venca.balak
Level 1
Level 1

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)

10 Replies 10

blueant06
Level 1
Level 1

check your gmail~i sent my code to your email!

here is the xml String:

String strSoapMsg=""+

"http://schemas.xmlsoap.org/soap/envelope/\" "+

"xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" "+

"xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\">"+

""+

"http://schemas.xmlsoap.org/soap/encoding/\">"+

""+

""+

""+

"http://schemas.xmlsoap.org/soap/encoding/\" "+

"xsi:type=\"ns1:CmSelectionCriteria\" xmlns:soapenc=\"http://schemas.xmlsoap.org/soap/encoding/\" "+

"xmlns:ns1=\"tns:CmSelectionCriteria\">"+

"2000"+

""+

"Name"+

""+

""+

""+

""+

"";

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

Hi,

Can you please share me the code mailed to you by blueant06 for this issue. Thanks in advance

Hi!

Im really not sure, that i can share piece of somebody's else code, try to write him an email, sorry.

Hi!

Would you mind posting the header you are sending? Are you using HTTP or HTTPS? thanks!

cheers,

alej

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 ;-)

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

Hi,

Can you please send me your code to my email gharikir@gmail.com

Code on it's way!

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

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: