05-31-2016 12:17 AM - last edited on 06-04-2019 09:48 AM by Paul Zimmerman
Hi no matter how I try to connecting to the XMPP service, I end up getting and not-authorized response,
Heres my sample code (java) using the smack library :
String domain = "hq-uccx.abc.inc";
XMPPTCPConnectionConfiguration config = XMPPTCPConnectionConfiguration.builder()
.setUsernameAndPassword("Agent002@abc.inc", "ciscopsdt")
.setServiceName("hq-uccx.abc.inc")
.setHost(domain)
.setPort(5222)
.build();
AbstractXMPPConnection connection = new XMPPTCPConnection(config);
connection.connect();
System.out.println("So far so good! Connected to server");
connection.login();
I am able to connect to the server but, it fails at the login line..I have tried all the different users specified in the sandbox documentation. When this works, next step for me are to get a BOSH connection where I think I can get more information out of..
Solved! Go to Solution.
06-07-2016 02:11 AM
WOW, I had to lowercase the userid. THEN it worked.. NOT cool.
06-07-2016 06:16 AM
That is quite strange! I will need to test this out and ensure that this is working and documented as expected. Thanks for bringing this to our attention!
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