BUG Community

Welcome! Log In

Forums Applications Expose a Web Service from Bug

Subscribe to Expose a Web Service from Bug  3 posts, 2 voices , Tagged: webservice

Log in to reply to this topic
 
Feb 19, 2011 9:08am
Medium livercool 38 posts

I’m new to Bug Labs and Java and I’m trying to find out how to expose a web service like the one exposed when putting the GPS modules for example @ http://localhost:8082/service.html (on the simulator) from a custom app.

I looked through the 2.0 wiki, did a search on “web service” in the forums but nothing interesting came up.

Any pointers/directions guys?

Thanks

Feb 19, 2011 9:35am
Medium Bug Labs team kgilmer 215 posts

Hi livercool,

  The primary client interface that needs to be implemented and registered with the OSGi service registry is PublicWSProvider.  Here is an example app on BUGnet that demonstrates how to implement it:

http://www.buglabs.net/applications/ExampleWS

  Another tip is the code search feature on bugnet, it’s a nice way of finding examples.  Here was my search for PublicWSProvider:

http://www.buglabs.net/codesearch?query=PublicWSProvider

th