0 Replies Latest reply on Oct 25, 2017 7:32 PM by Ángel Vicente Baranda

    Apache Camel Cxf failed endpoint

    Ángel Vicente Baranda Newbie

      I want to use a call to a wsdl with only "wsdlURL" in CXF EndPoint.

       

      <?xml version="1.0" encoding="UTF-8"?>
      <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
      xmlns:camel="http://camel.apache.org/schema/blueprint" xmlns:camelcxf="http://camel.apache.org/schema/blueprint/cxf"
      xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
      xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="     http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/blueprint/camel-blueprint.xsd ">
      <cm:property-placeholder
        id="property-placeholder-5d0424d1-aed1-49bb-8076-fba6e02b0c03"
        persistent-id="xxxxx" update-strategy="reload" />
      
      <bean class="edpc.util.SendMail" id="sendEmail" />
      <camelcxf:cxfEndpoint id="reportIncident"
        wsdlURL="http://xxxxxxxx/emailService?wsdl">
        <camelcxf:properties>
        <entry key="dataFormat" value="MESSAGE" />
        </camelcxf:properties>
      </camelcxf:cxfEndpoint>
      
      <camelContext xmlns="http://camel.apache.org/schema/blueprint">
        <route>
        <from uri="{{fileinput}}" />
        <log message="[edpc-connect] Ready to send file ${file:name} " />
        <to uri="{{filebackup}}" />
        <to uri="{{fileedpc}}" />
        <log message="[edpc-connect] File ${file:name} sent." />
        <choice id="_choice1">
        <when id="_when1">
        <simple>${property:CamelBatchComplete} 
        </simple>
        <log message="[edpc-connect] Go to Read Xml " />
        <to uri="{{fileXml}}" />
        </when>
        </choice>
        </route>
        <route>
        <from uri="{{fileXml}}" />
        <to uri="bean:sendEmail?method=doIt" />
        <to uri="cxf:bean:reportIncident?defaultOperationName=sendMessage" />
      
        </route>
      </camelContext>
      

       

       

      When I run only the second route commenting the first one does not give me any error.

      If I run the 2 routes then when it is deployed it gives me an error:

      Because of Failed to resolve endpoint: cxf: bean: reportIncident Can not lookup

      Environment:

      Java 8 jboss-fuse-6.3.0.redhat-187