Hello,
I attended the Camel seminar given by Mr. Tobias Polley at the OIO institute in Mannheim and have the following situation running karaf 3.0.1 with camel 2.13.2.
Defining the following in my context file:
<bean
<camel-cxf:rsClient
id="clientRegister"
address="http://credita.staging.com2-gmbh.de/mydata"
serviceClass="NewCustomerOrder"
loggingFeatureEnabled="true" />
</bean>
<route>
<from uri="activemqEndpoint:topic:mytopic" />
<to uri="cxfrs://bean://clientRegister?exchangePattern=InOut&dataFormat=PAYLOAD" />
</route>
and then sending the REST call to the remote server, I am never receiving a reply from that same server.
In order to investigate this, I was adviced using the membrane service proxy for watching the traffic.
I did the following:
1) installation of Membrane Service Proxy 4.0.18 and run it on windows.
2) modification of proxies.xml file such as:
<spring:beans ... >
<router>
<serviceProxy port="80">
<rewriter>
<map from="/(.*)" to="/mydata" />
</rewriter>
</serviceProxy>
<serviceProxy name="Admin Console" port="9000">
<basicAuthentication>
<user name="admin" password="membrane" />
</basicAuthentication>
<adminConsole />
</serviceProxy>
</router>
</spring:beans>
3) starting the admin console using localhost:9000/admin shows:
and
4) To be sure I have the configuration right for the Membrane Service Proxy, I setup a Firefox REST client and sent a request in json from there:
I got an OK as a response, but the Membrane Service Proxy was not delivering anything to the remote server.
First, I would like to have your expertiese on the issue of why Membrane does not react ( I guess it is a configuration issue ).
Second, do you see any wrongdoing when setting up the REST client with Camel in the context file
Thank you very much for your expertiese
With kind regards