我正在使用 smack 库发送数据包,我收到错误 503 我想这可能是由正文括号中的 xml 引起的,但我不确定。我试图让我自己的 PacketExtension 不是正文,但它没有帮助。这是我从服务器返回的消息。收到消息,但另一个客户端并很好地解析,但我想知道为什么会出现错误。
<message id="Ly3iT-34" to="yyyyyy" from="xxxxxx" type="error"><body><xxxxx type="road_status_choose">
<version>1.1</version>
<msg_id>137482497930710041374824168527</msg_id>
<timestamp>1374824979307</timestamp>
<road_status_previous_path class="java.util.ArrayList">
<road_status>
<road_status_name>Postój</road_status_name>
<road_status_id>2</road_status_id>
</road_status>
</road_status_previous_path>
<status_list_id>1</status_list_id>
<road_status_path class="java.util.ArrayList">
<road_status>
<road_status_name>Jazda</road_status_name>
<road_status_id>1</road_status_id>
</road_status>
<road_status>
<road_status_name>Z ładunkiem</road_status_name>
<road_status_id>7</road_status_id>
<road_status_parent_id>1</road_status_parent_id>
</road_status>
</road_status_path>
<status_list_type>0</status_list_type>
</infis_message></body><error code="503" type="CANCEL"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/></error><properties xmlns="http://www.jivesoftware.com/xmlns/xmpp/properties"><property><name>RECEIVED</name><value type="boolean">true</value></property></properties></message>
提前致谢!