Sorry Sergey, something went wrong with my mail :) I suppose that were the
<!-- tags - they broke partially my stupid mail account :D o0.
So here i try anew:
this is the content of my sd.xml:
<service-decoration>
<match interface="test.MyService">
<add-property name="service.exported.interfaces"
value="test.MyService" />
<add-property name="service.exported.configs"
value="org.apache.cxf.rs" />
<add-property name="service.exported.intents" value="HTTP" />
<add-property name="org.apache.cxf.rs.address" value="/myservice"/>
<add-property name="org.apache.cxf.rs.httpservice.context"
value="/rest/ws/myservice"/>
<add-property name="org.apache.cxf.rs.databinding" value="aegis"/>
</match>
</service-decoration>
my remote-services.xml looks like following:
<service-description>
<provide interface="test.MyService" />
<property name="osgi.remote.interfaces">*</property>
<property name="osgi.remote.configuration.type">pojo</property>
<property
name="osgi.remote.configuration.pojo.address">http://${DOSGI_SERVER}:23990/dosgi/ws/myservice</property>
</service-description>
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
Sergey Beryozkin-5 wrote:
>
>
> 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 <[email protected]> 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
>>
>
>
--
View this message in context:
http://old.nabble.com/CXF-Distributed-OSGI-and-RESTful-tp28582737p28584051.html
Sent from the cxf-user mailing list archive at Nabble.com.