使用Apache Camel消费和生产SOAP到SOAP

使用Apache Camel消费和生产SOAP到SOAP,soap,apache-camel,cxf,Soap,Apache Camel,Cxf,我想知道,使用一个web服务,我对ApacheCamel是否满意。但是,我想用现有的web服务公开一个基于SOAP的服务。这似乎是一个代理服务。我怎样才能做到这一点?我希望你能帮助我。谢谢。此链接详细介绍了以下步骤: 下面给出了公开服务 from("cxf:bean:xxBean") .to("log:DEBUG?showBody=true&showHeaders=true") .to("direct:XXXXX").end();

我想知道,使用一个web服务,我对ApacheCamel是否满意。但是,我想用现有的web服务公开一个基于SOAP的服务。这似乎是一个代理服务。我怎样才能做到这一点?我希望你能帮助我。谢谢。

此链接详细介绍了以下步骤:


    • 下面给出了公开服务

       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;
      }
      

      你已经检查过这个网站了。对我帮助不大。我需要更多:)谢谢你的帮助。