Finally, I succeeded to use d-osgi (1.3-SNAPSHOT, single bundle).
I just used these properties:
props.put("service.exported.configs", "org.apache.cxf.ws");
props.put("osgi.remote.configuration.wsdl.location",
"./wsdl/Helloworld.wsdl");
For the implementation source code I reused the code generated by the CXF
command wsdl2java in order to supply my own implementation of the service.
The WSDL is included in the bundle, et the web service is available on a
URL http://localhost:9000/.../... (depending of your service)
Using soapUI the web service implementation was well called.
I would like to denote two points:
- I always the exception "java.lang.ClassNotFoundException:
org.apache.felix.fileinstall.FileInstall not found by
cxf-dosgi-ri-singlebundle-distribution [6]". Note that there is no level
for this trace.
- testing my implementation, I noted that when I updated my bundle (command
update), the web service wasn't available anymore; so I restarted Felix.
Is it a normal bahavior?
I will continue my tests.
Thank you for your help!
Bertrand.
2012/1/11 Sergey Beryozkin-5 [via CXF] <
[email protected]>
> thanks, and here is a link to the actual handler:
>
>
> http://svn.apache.org/repos/asf/cxf/dosgi/trunk/dsw/cxf-dsw/src/main/java/org/apache/cxf/dosgi/dsw/handlers/WsdlConfigurationTypeHandler.java
>
> The configuration will be nearly the same as for the POJO type, just
> specify osgi.remote.configuration.wsdl + wsdl location (start with a
> single service & port one) and see what happens by trying to get a WSDL
> from a browser, and then proceed to trying a client bundle
>
> Sergey
>
> On 11/01/12 14:50, Todd Nist wrote:
>
> > If you are refering to the d-osgi source it can be found here:
> >
> > http://svn.apache.org/repos/asf/cxf/dosgi/trunk
> >
> > The following page explains how to build it as well:
> >
> > http://cxf.apache.org/dosgi-build.html
> >
> > Todd
> >
> > On Wed, Jan 11, 2012 at 9:19 AM, bgoetzmann<[hidden
> > email]<http://user/SendEmail.jtp?type=node&node=5137053&i=0>>wrote:
>
> >
> >> OK, thank you.
> >>
> >> Now I install and start a bundle that exposes a POJO as a web service
> (with
> >> the d-osgi 1.3-SNAPSHOT), but not with a bundle using the
> >> osgi.remote.configuration.wsdl config.
> >>
> >> Can you tell me where I can access the source code?
> >>
> >> Bertrand.
> >>
> >> --
> >> View this message in context:
> >>
> http://cxf.547215.n5.nabble.com/WSDL-configuration-driven-from-WSDL-with-Apache-CXF-Distributed-OSGi-tp5125029p5136919.html
> >> Sent from the cxf-user mailing list archive at Nabble.com.
> >>
> >
>
>
> --
> Sergey Beryozkin
>
> Talend Community Coders
> http://coders.talend.com/
>
> Blog: http://sberyozkin.blogspot.com
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://cxf.547215.n5.nabble.com/WSDL-configuration-driven-from-WSDL-with-Apache-CXF-Distributed-OSGi-tp5125029p5137053.html
> To unsubscribe from WSDL configuration driven from WSDL with Apache CXF
> Distributed OSGi, click
> here<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5125029&code=YmVydHJhbmQuZ29ldHptYW5uQGdtYWlsLmNvbXw1MTI1MDI5fDMyNzg4NzczNg==>
> .
> NAML<http://cxf.547215.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.InstantMailNamespace&breadcrumbs=instant+emails%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context:
http://cxf.547215.n5.nabble.com/WSDL-configuration-driven-from-WSDL-with-Apache-CXF-Distributed-OSGi-tp5125029p5137494.html
Sent from the cxf-user mailing list archive at Nabble.com.