Hi Sergey,

this is the content of my sd.xml:


 





 <match





 








 interface="test.MyService">









 <add-property name="service.exported.interfaces"











 value="test.MyService" />










  








 








  








 <!--
 add-property name="org.apache.cxf.rs.address" value="/myservice"/-->










 <!-- add-property name="org.apache.cxf.rs.httpservice.context"











 value="/rest/ws/myservice"/>











 











  






  


  


my remote-services.xml looks like following:


  



  



  * 



  pojo 



  http://${DOSGI_SERVER}:23990/dosgi/ws/myservice 

  

 
MyService works flawlesly as a SOAP Web Service (by changing the configuration 
on sd.xml and remote-services.xml).  Could you please tell me what are the 
actual steps to expose a OSGI 
Service as a RESTful Web Service. 
I suppose that I have to:
1) edit sd.xml
2) edit remote-services.xml
3) What else? Do I need some annotations or could I go without them?
4) Do I need some extra libraries and if so where should I put them?

5) can MyService be exposed as a SOAP and RESTful simultaneously (in the same 
time)?

Thanks for your help!

Cheers,
George
 


 >Hi
 >
 >How does your sd.xml look like (just would like to see the properties). Also
 >make sure that JAX RS api packages are being imported, though there's an
 >option there to avoid importing them...
 >
 >cheers, Sergey
 >
 >On Mon, May 17, 2010 at 1:31 PM, Georgi Dimitrov  wrote:
 >
 >>
 >> Hi People,
 >>
 >> I was trying to expose one of my OSGI Services as a Restful Web Service
 >> (exposing that same service as a SOAP Web Service works). For that purpose I
 >> am writing the appropriate informations (e.g. properties) in the sd.xml and
 >> remote-services.xml files.
 >>
 >> But when I try to reach the RESTful web Service through Web Browser I only
 >> get the following response:
 >>
 >> " No services have been found. "
 >>
 >> Could you help me with this, since I have no Idea what I've done wrong.
 >>
 >> Regards,
 >> George
 >>
 >
 

Reply via email to