конфигурация верблюд cxf с пружиной - PullRequest
0 голосов
/ 03 июня 2019

вот мой верблюжий код cxf (camel-context.xml). Проблема, с которой я столкнулся, заключается в том, что мне придется выполнять код Java, зная, что мой API-интерфейс является типом REST, я искал, что нашел SOAP как код,Вы, кто уже сделал этот код с REST API?

<cxf:cxfEndpoint 
    id="routeApi" 
    address="http://localhost" 
     serviceClass="org.apache" 
    <cxf:properties>
        <entry key="dataFormat" value="MESSAGE"/>
        <entry key="setDefaultBus" value="true"/>
    </cxf:properties>

<cxf:cxfEndpoint 
    id="serviceApi" 
    address="http://localhost:" 
     serviceClass="org.apache" > 
    <cxf:properties>
        <entry key="dataFormat" value="MESSAGE"/>
        <entry key="setDefaultBus" value="true"/>
    </cxf:properties>

<camelContext xmlns="http://camel.apache.org/schema/spring" 
streamCache="true" id="camel">
<route errorHandlerRef="noErrorHandler"> 
  <from uri="cxf:bean:routeApi"/> 
   <loadBalance>             
        <to uri="cxf:bean:serviceApi"/>
    </loadBalance>
</route>
</camelContext>
...