04-03-2008 08:14 AM - edited 03-15-2019 04:59 AM
Hi!
Im trying to get phone name (SEP...) of device, in which is logged some EM user. With standard user this is no problem (axl getPhone) but how to do this on EM phone? I know userId or phonenumber, so how to do that, can anyone help, pls?
Many thanks!
ps, i tried EMservices, but it still responses 500 :-((
04-03-2008 08:28 AM
EM phone? A phone is a phone.
If an extension mobility user is logged into a phone, then the loginUserId field will contain the userid of the currently logged in user.
And as far as the EM Service goes.. you'd have to post your full request.
04-04-2008 12:21 AM
Many thanks for quick response! I don't agree with that getPhone returns loginUserId on phone with extension mobility user logged. It returns error message (but the same axl calling on phone without EM user logged it works correct).
It returns "A syntax error has occurred.", code -201. Full xml output (and request) are attached.
04-04-2008 12:16 AM
Hi,
you can use the EM API to get this information (userDeviceQuery):
it will return SEP00... if sucessful. You will find more information in the EM API service documentation.
Regards
Axel
04-04-2008 12:34 AM
Hi!
Thanks for reply, but this i s the way i do, i'm sending the same query you wrote via POST to http://CM/emservice/EMServiceServlet:
and it returns absolutely another user (see attachement) with no info about phone :-(. And the most amazing thing - after returning this it breaks up with exception:
java.io.IOException: Server returned HTTP response code: 500 for URL: http://x.y.z.w/emservice/EMServiceServlet
maybe some problem with authorization? Im sending Request property Authorization: Basic with BASE64 encoded cmAdmin:passwd and in query im using emuserid + emuserpwd
04-04-2008 12:51 AM
Hi,
I can't belive, that you are requesting the EM API, it looks like AXL, because the return is "/axl:getUserResponse", your request seems to be "getUserRequest". But that has nothing to do with EM.
I suggest you start with a html file (I attached one, you just have to put in your credential and so on).
After that I would start with AXL doing the same.
Regards
Axel
04-04-2008 01:00 AM
Thanks, i'll try to!
Now i'm experimenting with RisList and it looks like that you are right about LoginUserId, when there is logged EM user, it returns his login and when there is no EM user logged in, it returns nil, hooray, step closer to problem solution :-)
04-04-2008 01:07 AM
nope :-(
response to your form is
but no firewall...where can be problem?
04-07-2008 05:33 AM
To what url are you posting the em request? The port number has been changed between version 4 and version 5.. you get the error 0 if you send the request to the same url
On CCM 4 it's
http://" + callManager + "/emservice/EMServiceServlet
on CCM 5+ it's
http://" + callManager + ":8080/emservice/EMServiceServlet
04-15-2008 06:34 AM
i'm using the second one.
i catch a traffic with exception from CUCM, here it is:
java.lang.String.
com.cisco.emservice.EMServiceServlet.processRequest(EMServiceServlet.java:203)
com.cisco.emservice.EMServiceServlet.doPost(EMServiceServlet.java:313)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor766.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
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