Edit: Obviously my first question was not really easy to understand, I hope the answer is usefull 🙂
I have tried installing Axis2 on the Red5 server and everything went ok, I accessed the Red5 app properties from a custom Web Service using Red5’s RTMPClient and exposed them through Axis2.
The problem is that doing it that way I have a 2 levels server and I don’t really have direct access from the webservice to the sharedobjects, etc… What I would like to do is to be able to access some Red5 apps functions directly through the SOAP service class.
I suppose I will have to create the SOAP server on my own (maybe using Axis’s SimpleHTTPServer or SimpleAxis2Server??)
Any ideas??
I hope I explained myself… And thanks in advance
Resolved!!!
Instead of using Axis2, I have used JAX-WS which is what I really needed.
I have created a class to use as WebService and expose my SharedObjects
Then I added a call to Endpoint.publish() on MyApplications appStart function to run the WebService as soon as the application is run. I pass this as a parameter to the Red5WS constructor to be able to access applications scope from the web service:
After compiling the Red5 app it’s a must to use the wsgen to create the needed WS classes.
Once restarted the Red5 app you should be able to acces web service’s WSDL file through: