web-services - 在哪里可以找到 cxf/cxf.xml、cxf-extension-soap.xml、cxf-servlet.xml

标签 web-services wsdl 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>

在其中。

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

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

最佳答案

我知道这是一个旧帖子,但这可能对其他人有帮助
cxf-extension-soap.xmlcxf-rt-binding-soap jar,但你需要 cxf-rt-frontend-jaxwscxf-servlet.xmlcxf-rt-transports-http jar
cxf.xmlcxf-rt-core jar (这是上述那些的传递依赖)

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

关于web-services - 在哪里可以找到 cxf/cxf.xml、cxf-extension-soap.xml、cxf-servlet.xml,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13715048/

相关文章:

java - 如何重写CXF AbstractInvoker?

python - 用于测试soap客户端的公共(public)免费网络服务

c++ - gSOAP SSL - 将现有代码转换为 ssl

java - 您可以在 Coldfusion 中编写 Web 服务调用而不使用 createObject ("webservice"....i.使用Java

php - 为 SOAP 服务器创建 WSDL 文件

java - 使用 Apache CXF DOSGi 进行身份验证和 session 管理

java - Apache Camel 条件路由

java - 为什么我无法在 Web 服务 'Hello world' 示例中生成客户端代码?

web-services - Powershell 不会从 NewWebServiceProxy 捕获异常

ios - 如何在 Objective c 中使用 AES 加密发送 CommonCrypto POST 请求?