I'm new to any of open framework(I'm a solution engineer based on java) and trying to build a cxf project.
I understand that I need to have applicationContext.xml
file and contents something like
<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"
xmlns:http-conf="http://cxf.apache.org/transports/http/configuration"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.1.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
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.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" />
<http-conf:conduit name="*.http-conduit">
<http-conf:client ReceiveTimeout=“300000“ AllowChunking="false"/>
</http-conf:conduit>
<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" />
<cxf:bus>
<cxf:features>
<cxf:logging />
</cxf:features>
</cxf:bus>
</beans>
in it.
I now wonder where I can download
cxf/cxf.xml, cxf-extension-soap.xml, cxf-servlet.xml
files.
Or that I created a Dynamic Web Project is wrong? Does some other project type automatically generates those files?
I know this is an old post, but this might help others
cxf-extension-soap.xml
is in cxf-rt-binding-soap
jar, but you will need cxf-rt-frontend-jaxws
cxf-servlet.xml
is in cxf-rt-transports-http
jar
cxf.xml
is in cxf-rt-core
jar (which is a transitive dependency of the above ones)
Therefore, if you include cxf-rt-frontend-jaxws
and cxf-rt-transports-http
as dependencies (with Maven, for example) your project should work correctly.