SOAP / REST calls through XMPP

I want to make a solution in which I can use XMPP chat clients connected to gtalk, allowing SOAP web services and REST calls destined for the local network (behind the firewall proxy server, etc.) and are transferred to another chat a client on a different local network (behind another firewall proxy, etc.).

I narrowed down to the Smack API , but being new to XMPP and smack, I don't know if this is possible or not with Smack?

Does smack provide such functionality? I tried the Smack documentation, but couldn't understand it at sufficient depth.

Any other possible alternatives, suggestions are also welcome.

+3
source share
2 answers

Start with XEP-72 for a hint about the protocol style you should use. There are several good reasons for this, including:

  • Firewall Bypass (as noted)
  • No need to make a TCP connection often, keeping the delay
  • No need to authenticate for each request, but can authenticate the stream
  • A separate XML parser is not required for each request, which means that processing can be more efficient.
+4
source

To simplify the start with http://xmpp.org/extensions/xep-0050.html and use the node command in restfull mode

+2
source

Source: https://habr.com/ru/post/1771191/


All Articles