ProcessOne SiteCustomer Helpdesk and FeedbackFollow us on Twitter
 
   
 
Problem with jsjac client sending iq message
Posted: 13 January 2012 10:34 AM   [ Ignore ]
Newbie
Rank
Total Posts:  2
Joined  2012-01-13

Hi,

I have to send an iq format as follows from web client (using jsjac library) to android client / controller device.


<iq from=“xp-psi@ip-10-127-95-1/mob-dev-mat3” type=“set” id=“1111” to=“sqdemo1@ip-10-127-95-1/sqc_333333” >

<xdc >

<item value=“off” var=“set” >

</xdc>

</iq>

But when i send it, xmlns attribute is added after iq as xmlns=jabber:client


Receiver device not validating this xmlns=“jabber:client”, so i have to send without this attribute. Can anyone plz help me out how to do this?

Regards,
Suresh.

Profile
 
 
Posted: 13 January 2012 10:39 AM   [ Ignore ]   [ # 1 ]
Senior Member
Avatar
RankRankRankRank
Total Posts:  171
Joined  2009-06-23

As far as I know, xdc is not an element in the XEPs, so you should qualify it with a specific xmlns. And your receiving client should be able to take this xmlns into account.

Profile
 
 
Posted: 13 January 2012 11:09 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  2
Joined  2012-01-13

Hi,

Thanks for your reply.  actually i have put the xmlns in xdc, i think it is stripped while posted. Anyhow that is not the issue. Issue is i want to remove xmlns=“jabber:client” in iq stanza.


Regards,
Suresh.

Profile