1

私のキャメルルーター:

<cxf:cxfEndpoint id="chdEndpoint"
    address="http://0.0.0.0:8080/chd-esb/callService"      endpointName="s:RealServerImplPort"
    serviceName="s:RealServerImplService" wsdlURL="wsdl/RealServer.wsdl"
    xmlns:s="http://server.example.com/" />

<route id="chd-webservice">
      <from uri="cxf:bean:chdEndpoint?dataFormat=MESSAGE" />
      <log message="get client call webservice!" />
    <to ref="callChdRealWebService" />
    <log message="get real webservice back" />
    </route>

camel ルーターを karaf にデプロイします。クライアントがWebサービスを呼び出すかどうかを知りたいのですが、最初に桟橋へのhttpリクエストと桟橋がキャメルにリクエストを送信し、キャメルが実際のWebサービスを呼び出すcxfを使用します

4

1 に答える 1

0

Karaf サーバーで Web サービスを公開するには、cxfEndpoint などの Apache CXF を使用します。その際、Apache CXF は Jetty ベースの Apache Karaf の HTTP サービスを使用します。要するに、使用されているその Jetty です。

Apache Karaf には、Jetty が構成されている etc/jetty.xml 構成ファイルがあります。

OSGi HTTP サービスと Jetty の詳細については、Karaf Web サイト ( http://karaf.apache.org/manual/latest-2.3.x/users-guide/http.htmlなど) を参照してください。

于 2013-09-05T08:33:05.573 に答える