cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hilderich <>
Subject How to build a web service client with blueprint
Date Mon, 01 Jul 2013 09:41:27 GMT
Hello folks,

we have built a WAR with one servlet and converted it to make a bundle by
using the maven bundle plugin.
The servlet and jsp's are running fine. 
Now I would like to use a web service client in that servlet. How can I
achieve that?

So far we used the cxf-codegen maven plugin to create all required classes
to build a client.
We have all the dependencies: /cxf-rt-transports-http/, /cxf-rt-ws-addr/,
/cxf-rt-ws-policy/, /cxf-rt-frontend-jaxrs/, 
/cxf-rt-ws-security/ and /cxf-rt-transports-http-jetty/ declared in maven.
Futhermore I have the following entry 
inside the blueprint.xml:

<blueprint xmlns=""

	<bean id="myServlet" class="com.production.dashboard.DataCombination">
		<property name="dataMergingService" ref="dataMergingService"/>

	<service ref="myServlet" interface="javax.servlet.http.HttpServlet">
			<entry key="alias" value="/hello" />

	<jaxws:client id="dataMergingService"
		address="http://localhost:8181/engine/datacombination?wsdl" />


When I use this approach the injection fails because the client is always

Could anybody please explain me how a web service client has to be used in
OSGi, blueprint and 
in conjunction with a war enabled bundle?

Many thanks in advance.


View this message in context:
Sent from the cxf-user mailing list archive at

View raw message