# Web service on Wowza Server?

**URL:** https://community.wowza.com/t/web-service-on-wowza-server/134
**Category:** Wowza Streaming Engine
**Created:** [April 18, 2007, 1:58pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134 "2007-04-18T13:58:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/system/32/447_2.png) [@system](https://community.wowza.com/u/system)
#### Post date: [April 18, 2007, 1:58pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/1 "2007-04-18T13:58:44Z")

</div>

Is it possible to write a web service and deploy it to the wowza server? If yes, can you provide some guidance as to how it would fit the server architecture? I’m looking at a way to query the wowza server from a client/server app. I know I can write a module that accesses remote web services, but don’t know how to write a module that would serve as a web service (if it is feasible). Perhaps you can suggest an approach other than web services.

Thanks.

---

<div class="post-metadata">

### Author: ![sean\_o\_cathain](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sean\_o\_cathain](https://community.wowza.com/u/sean_o_cathain)
#### Post date: [April 19, 2007, 12:45pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/2 "2007-04-19T12:45:21Z")

</div>

Why not try creating a DB module for wowza and store whatever data you want there and query the DB instead of a Wowza web service in your client / server app?

Since you can get the latest information via the onConnect etc methods it would be live or am i wrong in assuming you just want wowza info like current users for an App etc ?

John Kane 🆒

www.blueface.ie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [April 19, 2007, 7:33am UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/3 "2007-04-19T07:33:27Z")

</div>

My suggested approach would be to use Apache Axis. The problem is where to hook it into the server. One approach would be to use the onAppStart and onAppStop event method handlers. You could fire up an Apache Axis Web Services API each time an application is started and stopped. You can stop an application from being unloaded by setting the application timeout (Application/ApplicationTimeout) to 0 in VHost.xml. Then once the application is started it will keep running.

Can you use this hook for now to get your web service started. Let me consider a better way of starting these types of applications on server start. It would be a lot cleaner.

Charlie

---

<div class="post-metadata">

### Author: ![Charlie\_Good](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/charlie_good/32/383_2.png) [@Charlie\_Good](https://community.wowza.com/u/Charlie_Good)
#### Post date: [April 21, 2007, 12:34pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/4 "2007-04-21T12:34:14Z")

</div>

I wish I had time to dig into this more deeply right now but here are a couple of suggestions on approaches:

- Use the MX4J library to expose the JMX/RMI management API as SOAP:

- Integrate a Java servlet container into the Wowza Pro server and use Axis to expose your API. You can use the Wowza Pro module OnAppStart/OnAppStop interface to kick off a new Thread that would run either Tomcat or something smaller like Winstone.

- There is a stand-alone http server that is part of Axis. It sounds like its not production quality but it might be enough.

---

<div class="post-metadata">

### Author: ![sean\_o\_cathain](https://avatars.discourse-cdn.com/v4/letter/s/9de053/32.png) [@sean\_o\_cathain](https://community.wowza.com/u/sean_o_cathain)
#### Post date: [April 19, 2007, 2:57pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/5 "2007-04-19T14:57:45Z")

</div>

oh cool 🙂

Well you could integrate [https://jax-ws.dev.java.net/](https://jax-ws.dev.java.net/) or something like it, into one of your wowza modules. Or even use one of the apache projects to use apache to expose your wowza functionality ?

I’ve never tried it unfortunately so i can’t be the voice of experience ☹ but if you want the help, you’d be welcome to the hand.

John Kane

www.blueface.ie

---

<div class="post-metadata">

### Author: ![Guillermo\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@Guillermo\_Rodriguez](https://community.wowza.com/u/Guillermo_Rodriguez)
#### Post date: [April 19, 2007, 10:10am UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/6 "2007-04-19T10:10:42Z")

</div>

Thanks John for your comment.

I agree with you that the DB option is a valid one; however, we would prefer not to rely on a database to synchronize these two apps since these two apps might be maintained by different groups or even different companies.

I would prefer to pass the parameters either by having the J2EE call a web service on the Wowza Server (still don’t know if it is possible) or, have a Wowza module call a web service when a new connection is established to validate the session ID (I know it is possible, I have done that). Still, I’m interested to know whether I can deploy a web service on the Wowza Server.

---

<div class="post-metadata">

### Author: ![Guillermo\_Rodriguez](https://avatars.discourse-cdn.com/v4/letter/g/4af34b/32.png) [@Guillermo\_Rodriguez](https://community.wowza.com/u/Guillermo_Rodriguez)
#### Post date: [April 20, 2007, 12:33pm UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/7 "2007-04-20T12:33:17Z")

</div>

Thanks Charlie.

Does Wowza Media Server have a built-in HTTP server? If not, how would you integrate Axis into the existing server? Maybe I’m missing something…

---

<div class="post-metadata">

### Author: ![Robert\_Smith](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@Robert\_Smith](https://community.wowza.com/u/Robert_Smith)
#### Post date: [January 9, 2008, 12:30am UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/8 "2008-01-09T00:30:59Z")

</div>

see the discussion & notes at:

[https://www.wowza.com/forums/showthread.php?t=682&page=2&highlight=web+service](https://www.wowza.com/forums/showthread.php?t=682&page=2&highlight=web+service)

---

<div class="post-metadata">

### Author: ![k\_k](https://avatars.discourse-cdn.com/v4/letter/k/8491ac/32.png) [@k\_k](https://community.wowza.com/u/k_k)
#### Post date: [April 15, 2013, 4:51am UTC](https://community.wowza.com/t/web-service-on-wowza-server/134/9 "2013-04-15T04:51:14Z")

</div>

> I wish I had time to dig into this more deeply right now but here are a couple of suggestions on approaches:

- Use the MX4J library to expose the JMX/RMI management API as SOAP:

- Integrate a Java servlet container into the Wowza Pro server and use Axis to expose your API. You can use the Wowza Pro module OnAppStart/OnAppStop interface to kick off a new Thread that would run either Tomcat or something smaller like Winstone.

- There is a stand-alone http server that is part of Axis. It sounds like its not production quality but it might be enough.
