SOAP/REST calls over XMPP
I want to make a solution where I can use XMPP chat clients connected to gtalk, resolving SOAP web services and R开发者_开发知识库EST calls meant for a LAN (behind firewall proxy etc) and transferring over to the other chat client on another different LAN (behind other firewall proxy etc).
I have narrowed down on Smack API, but being a newbie in XMPP and smack, I don't know if is it possible or not with Smack?
Does smack provide for such a functionality? I tried Smack documentation but couldn't understand it in enough depth.
Any other possible alternatives, suggestions too are most welcome.
Start with XEP-72 for a hint at the style of protocol you should use. There are some good reasons to do this, including:
- Firewall traversal (as noted)
- Don't have to do a TCP connection as often, saving latency
- Don't have to authenticate for each request, but can authenticate the stream
- No need for a separate XML parser for each request, which means processing can be more efficient
To make things easier start with http://xmpp.org/extensions/xep-0050.html and use command's node attribute in a restfull way
精彩评论