【问题标题】:Consume and Produce SOAP to SOAP with Apache Camel使用 Apache Camel 使用和生成 SOAP 到 SOAP
【发布时间】:2020-01-22 05:48:07
【问题描述】:

我想知道使用 Apache Camel 是否可以使用 Web 服务。但是,我想用 apache camel 现有的 web 服务公开一个基于 SOAP 的服务。这似乎是一个代理服务。我将如何实现这一目标?我希望你能帮助我。谢谢。

【问题讨论】:

    标签: soap apache-camel cxf


    【解决方案1】:

    【讨论】:

    • 已经检查过这个网站。对我帮助不大。我需要更多 :) 谢谢你的帮助。
    【解决方案2】:

    暴露服务如下。

     from("cxf:bean:xxBean")
                .to("log:DEBUG?showBody=true&showHeaders=true")
                .to("direct:XXXXX").end();
    }
    
    @Bean
    public CxfEndpoint xxBean() {
        CxfEndpoint serviceEndpoint = new CxfEndpoint();
        serviceEndpoint.setServiceClass(ServiceInterface.class);
        serviceEndpoint.setDataFormat(DataFormat.POJO);
        serviceEndpoint.setAddress("URI");
        serviceEndpoint.setWsdlURL(getClass().getResource("/wsdl/xxxx.wsdl").toString());
    
        return serviceEndpoint;
    }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-09-07
      • 1970-01-01
      • 1970-01-01
      • 2018-08-19
      相关资源
      最近更新 更多