我是任何开放框架的新手(我是基于 java 的解决方案工程师)并试图构建一个 cxf 项目。
我知道我需要 applicationContext.xml
文件和内容之类的
<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>
在其中。
我现在想知道哪里可以下载
cxf/cxf.xml, cxf-extension-soap.xml, cxf-servlet.xml
文件。或者说我创建的动态 Web 项目是错误的?其他项目类型是否会自动生成这些文件?
最佳答案
我知道这是一个旧帖子,但这可能对其他人有帮助cxf-extension-soap.xml
在 cxf-rt-binding-soap
jar,但你需要 cxf-rt-frontend-jaxws
cxf-servlet.xml
在 cxf-rt-transports-http
jar cxf.xml
在 cxf-rt-core
jar (这是上述那些的传递依赖)
因此,如果您包含 cxf-rt-frontend-jaxws
和 cxf-rt-transports-http
作为依赖项(例如使用 Maven),您的项目应该可以正常工作。
关于web-services - 在哪里可以找到 cxf/cxf.xml、cxf-extension-soap.xml、cxf-servlet.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13715048/