Thanks Dan. Client worked just fine with your suggestion.
Here is my service bean configuration. How do I dynamically create an
endpoint shown in service-beans.xml? I am embedding jetty to deploy this
endpoint.
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:cxf="http://cxf.apache.org/core"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://cxf.apache.org/core
http://cxf.apache.org/schemas/core.xsd
http://cxf.apache.org/jaxws
http://cxf.apache.org/schemas/jaxws.xsd">
<!-- Load CXF modules from cxf.jar -->
<import resource="classpath:META-INF/cxf/cxf.xml" />
<import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />
<import resource="classpath:META-INF/cxf/cxf-servlet.xml" />
<jaxws:endpoint
id="engine"
implementor="demo.services.CustomerServiceImpl"
address="/CustomerService" />
</beans>
**Thanks!
Arul
Daniel Kulp wrote:
On Thursday 03 April 2008, Arul Dhesiaseelan wrote:
Hello!
I am developing a Java first spring based CXF services. Is there a way
to dynamically create services and clients at runtime rather using
service-beans.xml and client-beans.xml?
I am embedding Jetty as my server which will host my CXF services.
Can someone on this group suggest me the approach?
Thanks!
Arul
Basically, the spring things are just configuring instances of various
factory beans. Thus, you can easily just configure the same factory
beans via API's calls. For example, jaxws:server is just configuring a
JaxWsServerFactoryBean. jaxws:client is configuring a
JaxWsProxyFactoryBean instance.