在哪里可以找到cxf/cxf.xml,cxf-extension-soap.xml,cxf-servlet.xml

Bor*_*Lee 10 wsdl web-services cxf

我是任何开放框架的新手(我是基于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>
Run Code Online (Sandbox Code Playgroud)

在里面.

我现在想知道我可以在哪里下载
cxf/cxf.xml, cxf-extension-soap.xml, cxf-servlet.xml文件.

或者我创建动态Web项目是错误的?是否有其他项目类型会自动生成这些文件?

Mar*_*anu 8

我知道这是一个老帖子,但这可能对其他人有帮助

cxf-extension-soap.xmlcxf-rt-binding-soap罐子里,但你需要cxf-rt-frontend-jaxws

cxf-servlet.xmlcxf-rt-transports-http罐子里

cxf.xmlcxf-rt-core罐子里(这是上述的传递依赖)

因此,如果您包含cxf-rt-frontend-jaxwscxf-rt-transports-http作为依赖项(例如,使用Maven),您的项目应该正常工作.


Bob*_*lin 4

这些文件中的每一个都可以在您需要包含在项目中的 CXF jar 中找到。

CXF-servlet.xml

CXF.xml

CXF-扩展-soap.xml

我一直发现启动并运行 CXF 项目的最快方法是使用 Maven Archetype。