Not logged in. · Lost password · Register
Forum: MatriX RSS
getting stanza error but xml seems to look good!
Avatar
ghull #1
Member since Oct 2014 · 1 post
Group memberships: Members
Show profile · Link to this post
Subject: Trying to Subscribe to Cisco Finesse notifications...
Here's what cisco's spec is for subscribing to teams:

  1. <iq type='set'
  2. from='CharlesNorrad@finesse-server.cisco.com'
  3. to='pubsub.finesse-server.cisco.com'
  4. id='sub1'>
  5. <pubsub xmlns='http://jabber.org/protocol/pubsub'>
  6. <subscribe
  7. node='finesse/api/Team/TheA/Users'
  8. jid='ChuckieNorrad@finesse-server.cisco.com'/>
  9. </pubsub>
  10. </iq

Here's the error I'm getting back from my sub request:

  1. <iq xmlns="jabber:client" type="error" id="MX_1" from="pubsub.uccx-10-y-ha-1.somewhere.com" to="uccx-10-y-ha-1.somewhere.com/6d329495">
  2.  <pubsub xmlns="http://jabber.org/protocol/pubsub">
  3.     <subscribe node="finesse/api/Team/Team 2/Users" jid="mwashington@UCCX-10-Y-HA-1.somewhere.com" />
  4.  </pubsub>
  5.  <error code="400" type="modify">
  6.     <bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas" />
  7.  </error>
  8. </iq>

I'm using:
  1. pubSubManager.Subscribe(serverJid, node, myBareJid, OnSubscribeResult);

in the OnOpen() event of the XMPP client.

Any help appreciated.
This post was edited 2 times, last on 2014-10-02, 23:05 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Jid always can contain only lowercase characters. You jid is mwashington@UCCX-10-Y-HA-1.somewhere.com
Can you try to fix this?

Your node has spaces, this can also be a problem, depending on your serer software. I don't know if Cisco allows spaces in nodes.

If it fails again can you please include also the request sent my MatriX?

Alex
This post was edited on 2016-01-29, 12:52 by Alex.
Avatar
ssteiner #3
Member since Jan 2016 · 26 posts · Location: Switzerland
Group memberships: Members
Show profile · Link to this post
In reply to post #1
@ghull: have you ever managed to sort this out?
Avatar
ssteiner #4
Member since Jan 2016 · 26 posts · Location: Switzerland
Group memberships: Members
Show profile · Link to this post
I've managed to sort it out on my end.
I've used all lowercase for the serverJid, and the domain part of the myBareJid.

In addition, ghull used the team's name for the node.. and you have to specify the team's id. To get from name to id, you need to use the Finesse REST API to extract all teams, identify the right one, and put the id into the node path.

On top of that, the user you're logging in with needs to have the proper permissions (I haven't fully discovered this (cisco's documentation say nothing on that topic so it's all trial and error), but I suspect you need to be a supervisor of the team).
Avatar
Alex #5
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by ssteiner:
In addition, ghull used the team's name for the node.. and you have to specify the team's id. To get from name to id, you need to use the Finesse REST API to extract all teams, identify the right one, and put the id into the node path.

is there no way t discover it with XMPP? Eg. XEP-0030: Service Discovery

Alex
Avatar
ssteiner #6
Member since Jan 2016 · 26 posts · Location: Switzerland
Group memberships: Members
Show profile · Link to this post
The documentation says nothing about service discovery so I presume that's a no. I mean you can't even list active subscriptions, even though the lack of it means you're bound to run into trouble as Finesse persists those.. so if your app crashes, there's no way to undo those subscriptions..
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS