簡體   English   中英

通過XMPP Jabber-net訂閱時出錯

[英]Error subscribing through XMPP Jabber-net

我正在嘗試通過Jabber-Net將.net應用程序連接到xmpp服務器以進行事件。 我無法訂閱事件,並不斷出錯。

我使用矩陣並能夠連接到XMPP服務器。 我沒有在我的項目中使用矩陣,因為我需要通過Jabber-Net使它工作。

我比較了兩個庫的發送和接收消息,以下是它們的區別:

矩陣:

SEND:
<iq id="MX_1" type="set" xmlns="jabber:client"> <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>MatriX</resource>  </bind></iq>

RECV:
<iq type="result" id="MX_1" to="server9.host9.com/4bbc160" xmlns="jabber:client"> <bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><jid>3002@server9.host9.com/MatriX</jid></bind></iq>

Jabber的-網

Send:
<iq id="jn_1" type="set" to="XMPP_SERVER_IP"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Jabbernet</resource></bind></iq>

RECV
<iq type="error" id="JN_1" from=" XMPP_SERVER_IP " to="server9.host9.com/e5c0c0b8"><bind xmlns="urn:ietf:params:xml:ns:xmpp-bind"><resource>Jabber.Net</resource></bind><error code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error></iq>

我知道兩個請求有微小變化。 知道如何在Jabber-Net中糾正它

您可能切換了JabberClient.NetworkHost和JabberClient.Server。 除非您的DNS設置不正確,否則您無需設置NetworkHost。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM