Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0
-
None
Description
one can not put both server and client in one spring context... just like this
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:jaxws="http://cxf.apache.org/jaxws"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">
<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="helloWorld"
implementor="com.net2com.webservice.HelloWorldImpl"
address="/HelloWorld" />
<bean id="client" class="com.net2com.webservice.HelloWorld"
factory-bean="clientFactory" factory-method="create"/>
<bean id="clientFactory"
class="org.apache.cxf.jaxws.JaxWsProxyFactoryBean">
<property name="serviceClass"
value="com.net2com.webservice.HelloWorld"/>
<property name="address"
value="http://localhost:8080/interface/webservice/HelloWorld"/>
</bean>
</beans>
When we need an spring application be both the web service provider and consumer, current CXF servlet transport is not support yet,
Because there is no http conduit initiatior defined in the servlet transport factory.