简体   繁体   中英

Does Wokkel (XMPP Library) support following features?

I want to develop a XMPP protocol to implement an RPC communication with following features. 1.Security Authentication between client and Server.

2.Support Null values(send null values to server)

3.Can able to send arbitrary values(XML-RPC support only 32 bits)

4.Can send method arguments by custom.(For eg sum(default,4,default) the default values will be chosen by server )

5.return error if, which should be arbitrary object

I would like know whether Wokkel library support all these features or do you know any other libraries which support these features.(eg:SleekXMPP or XMPPPY)

This question seems to have two parts:

1) Is there an existing XMPP extension protocol that supports the listed feature?

2) Does Wokkel (or possibly other Python XMPP libraries) support this?

The only XMPP extention protocols for generic RPC behaviour are XEP-0009 (Jabber-RPC) and XEP-0050 (Commands) .

XEP-0009 uses XML-RPC payloads sent over XMPP. But as you mention XML-RPC doesn't fit your use case.

XEP-0050 uses XEP-0004 data forms to perform predefined command exchanges with a server. I don't think it fits your requirements #2, #3, or #4, unfortunately.

Wokkel currently has support for neither, but could both be implemented relatively easily on top of the existing code.

For completeness, your requirement #1 (Secure authentication between client and server) should be satisfied just by using XMPP as the transport, regardless of the actual RPC (sub)protocol. It might be that you also require some authentication on top of that, but that's usually pretty application specific.

Requirement #5 seems incomplete in its wording, but XMPP supports application specific error conditions for error stanzas . XEP-0060 (Publish-Subscribe) uses that extensively. For example in its Payload Too Big error .

Wokkel does have support for application-specific error conditions.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM