cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
344
Views
0
Helpful
1
Replies

Error using web SDK for IM & Presence - "<xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>"

mihir.shah.13
Level 1
Level 1

I am using the following configuration parameters to ConnectUser function in JabberCommon.js:

var demo_config = {

    domain: "psdtemea.cisco.com",

    maxGraphAge: 5,

    unsecureAllowed: true,   

    atSymbolAllowed: true,

    logPersistence: false,

    serviceDiscoveryEnabled: false,

    httpBindingURL: "http://cup02:7335/httpbinding",

    httpBindingURL_secondary: "http://cup02:7335/httpbinding"

}

jabberwerx._config.httpBindingURL = "http://cup02:7335/httpbinding";

But I get the following error -

"<xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams"/>"

Please help,

Thanks,

Beena

1 Reply 1

npetrele
Cisco Employee
Cisco Employee

Are you trying to connect to the shared endpoint lab?  If so, you should use this as your binding URL: http://cup.psdtemea.cisco.com:7335/httpbinding

You can check the validity of the httpBindingURL by navigating directly to it with your browser.  If you get a response telling you that it's a BOSH (something like the picture below), then you've got the right URL.

bosh.png

Also, if you're using Chrome, you often need to navigate directly to the correct BOSH URL so you can tell Chrome it's okay to use the server certificate.