【问题标题】:publish WSDL with cxf in mule在 mule 中使用 cxf 发布 WSDL
【发布时间】:2013-01-14 23:28:24
【问题描述】:

我想在 MULE 中发布我的 WSDL 并使用以下代码:

<flow name="cxfProxy">
<http:inbound-endpoint
      address="http://localhost:8080/fed-ach"
      exchange-pattern="request-response">
    **<cxf:proxy-service
        wsdlLocation="http://wsf.cdyne.com/WeatherWS/Weather.asmx?wsdl"
        namespace="http://wsf.cdyne.com/"
        service="FedACH"
        payload="body" />**
</http:inbound-endpoint>
<copy-properties propertyName="SOAPAction" />
<http:outbound-endpoint
      address="http://wsf.cdyne.com/WeatherWS/Weather.asmx"
      exchange-pattern="request-response">
    **<cxf:proxy-client payload="body" />**
</http:outbound-endpoint>

但是在粗体中我有这个错误

元素:代理服务不允许是元素 HTTP 的子元素

【问题讨论】:

  • 您使用的是 Mule Studio 还是纯 XML 配置?
  • 您的配置是正确的并且运行良好。不要被 Studio 的虚假错误打扰。

标签: wsdl cxf mule


【解决方案1】:

Mule Studio 显示嵌入元素的错误(这是一个错误),但您的配置看起来很好并且运行提供的命名空间声明正确

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 2011-07-02
    • 2016-04-01
    • 2014-12-25
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多