Openfire websocket configuration - websocket

Hi I have installed Openfire and the plugin for websocket from the link (https://code.google.com/p/openfire-websockets/downloads/detail?name=websockets-0.0.0.6.zip&can=2&q=) When I install the the plugin, the plugin is available in the openfire plugin's. But the question is how do I configure, and how to access the WS.
Cheers
Sunil

For checking WebSocket
Socket = new WebSocket("ws://domain:7070/ws/",'xmpp')
Don't forget for 'xmpp' protocol

please go through the installation steps given in the link here openfire-server-configuration. It might prove helpful to install and configure your plugins.

Once you've installed the plugin (make sure you restart the server), you should be able to reach the Websocket connector via ws://domain:port/ws/, port usually being 7070. Check the Server > Server Settings > HTTP Binding menu in the web interface if you're not sure.
However you don't get to configure much. The Websocket plugin is very minimalistic, it will basically reuse the existing BOSH (plain HTTP) configuration, but that's usually enough.

Related

Connection over a proxy Quickfix/n

I am trying to establish a connection with quickfix/n but I am behind the company firewall. So I need to connect over a proxy to the acceptor.
According to the documentation of quickfix/j it is possible via JAVA, however in the documentation of quickfix/n there is no information about possibility of connecting to the acceptor over a proxy via C#.
Is it possible at all to do that from C# with quickfix/n ?
In JAVA this can be done via configuration file, e.g.:
ProxyType=http
ProxyVersion=1.1
ProxyHost=XXX.XXX.XXX.XXX
ProxyPort=YYYY
QuickFix/n v.1.7.0 does not support proxy at all.
QuickFix/n v.1.10.0 does support proxy (automatic via. WebRequest.GetSystemWebProxy()), however it does not support bypassing of the proxy details (user name and password).
I have created my own fork from v1.7.0 that supports user defined proxy (not WebRequest.GetSystemWebProxy) + credentials. This can be found here: https://github.com/mcjacek/quickfixn
ProxyHost=proxy.intranet.yourproxy.com
ProxyPort=8080
ProxyUserName=UserName
ProxyUserNamePassword=Password
I will soon refactor and create PR to merge it to master.

How do i enable websockets in xmpp openfire server

I am developing real time chat application in my website.For that i want to use websockets for communication.And i am using openfire server but i dont know how to enable websockets in openfire server . Any ideas.
Thanks in advance
If you use OpenFire 3.10 use this sources for compile a fixed version of websocket.
https://code.google.com/p/openfire-websockets/source/detail?r=21
(not tested, trying to find a way to compile it under linux)
You can download websocket build here;
https://code.google.com/p/openfire-websockets/downloads/list
Load plugin in you Web Admin Interface (.war is same of .jar)
Google a little bit and you can found some informations for OpenFire 3.7.2 and compatible version of websockets.
Igniterealtime Anounces a plugin
Openfire WebSocket Plugin Readme
Please go through the above readme

Tools for setting up Proxy Chain

We are trying to setup a chain of proxy server in our development system. We wanted to connect to a service through these proxies. The reason why we thought about proxy chaining is that there is no connectivity to the service from all the systems. So we thought we will run a proxy on one system, which will connect to a proxy on another system and so on.
Client ---> A (Proxy)--->B(proxy)---->Final destination
Could you please suggest some tools to achieve this? The service that we have is a SOAP based secured web service.
There is an open source application called ProxyChain for this, here is readme file for this project:
http://proxychains.sourceforge.net/howto.html
You can install as more as proxy chains you want using this open source software, you can configure it per your requirements. Also you can somehow use some port-forwarding. What is the client for SOAP requests? Is it a web or desktop application?

FTP on Wso2 ESB

I have a .Net web application that is front-ending the ESB in order to create Proxies programmatically.
I am trying to push a xml proxy into the ESB path: repository/deployment/server/synapse-configs/default/proxy-services/ via FTP but it seems not to work.
I was trying this connection: ftp://admin:admin#localhost:9443/repository/deployment/server/synapse-configs/default/proxy-services/
There is any other way to upload my XML in the ESB? many thanks
EDIT: I know that one answer could be "yes, you can do that by using admin services", but that didn't work for me due to lack of documentation regarding adding proxies via admin services. So I am looking at alternatives like FTP, because I know that placing the xml directly in the Repo folder will work, the problem is accessing the folder.
As I understand, you are trying to use FTP to upload a file to a path. This doesn't involve invoking WSO2 ESB, does it?
Based on above understanding, it seems your port specified in FTP address is incorrect. I think you should use the port of the FTP server you are running in your machine. Unless you haven't edit its config, it should be 21. After this change, you need to provide absolute path instead of relative path /repository/...
Think about it as just another FTP upload. ESB automatically deploy any file that comes to /repository/deployment/server/synapse-configs/default/proxy-services/ regardless of how it came there.
Hope this helps!
I was looking for a proper way to add a proxy to the ESB, possibly using ws-admin services, but that wasn't really straightforward: problem with repositories, libraries etc...
I ended up with a quick a dirty solution: secure java ftp to the server (with jsch )in the proper folder of the proxies.
Thanks for your help anyway
You could create your proxy within the Web Interface of WSO2 (use a Web Browser):
localhost:9443/carbon/admin/login.jsp
Or add the proxy by just copying the file
mv myProxy.xml MY_WSO2/repository/deployment/server/synapse-configs/default/proxy-services/myProxy.xml
An FTP connection to localhost:9443 will not work. Otherwise explain why you need to use FTP?

SoapUI global proxy testings not taken for test execution

I have created a web test project using the SoapUi GUI (free version). I need a proxy to connect to the Internet. Therefore, I have set the proxy host and port in File->Preferences->Proxy Settings and made sure that it is enabled. I know the proxy settings are correct, because I see the "soapUi Starter Page" properly. But to my surprise, these global proxy settings do not seem to be taken when running the web test case (I just configured a HTTP GET for http://www.google.com), and my request always times out.
I have failed to make it work both with version 4.0.1 and with 4.05 beta 1.
Can anyone help me with this?
Thanks
can you try with http://stackoverflow.com?
It seems soapui doesn't handle redirect right.

Resources