How does the Xsi Events go to the subscriber through NAT?

If the subscriber doesn't know its public IP or can't  be allowed to set router for port forwarding, Xsi Events will not go to the subscriber through NAT. Is there any workaround for this issue? Thanks!

Tag(s):

Posted Answers

Paul,

in a nutshell, at the moment you need to use an intermediate application (ie. perhaps the same proxy you use today in order to avoid cross-site scripting driven security restrictions within browsers) that has a public IP address, performs the subscriptions on behalf of clients. The clients can then use AJAX long polling or similar as a mechanism to open a channel to this relay and receive events back.

Roger.

No votes yet


Although in R17 out this spring we will support Apache COMET that allows you to keep a persistent HTTP connection to solve this issue.

No votes yet


Thank you for response, guys!

If I want to use Xsi for most of use case, and use CAP to subscribe events only, is that feasible? May i use both protocols to connect to all deployed servers in the same time?

Thanks! Paul

No votes yet


Yep, you can use CAP, Xsi and OCI-P all at the same time.

No votes yet


For R17, is there any browser side technology can support COMET? Does JavaScript XMLHttpRequest can handle asynchronously chunk by chunk in response body? When I run the chat demo in Apache HTPP Server, the browser (IE & FireFox) always display all conversation after connection closed, instead of one by one right after I input.

No votes yet


What Content-Type will be used in R17 COMET events http response? multipart/x-mixed-replace or something else?

No votes yet


Add A Response

In order to post a response, you must Login or Register first.