Fuse 6 is no longer supported
As of February 2025, Red Hat Fuse 6 is no longer supported. If you are using Fuse 6, please upgrade to Red Hat build of Apache Camel.1.2. Running a client
You can run either a web client or a Java client against the deployed web service.
Running the web client Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To run the web client:
- Open the
client.html
, which is located at the root of thecxf-osgi
example folder. - Click thebutton to send a request.
Figure 1.1. Example Client HTML Screen
Once the request has been successfully sent, a response message appears in the right-hand panel of the web page
Running the Java client Copy linkLink copied to clipboard!
Copy linkLink copied to clipboard!
To run the Java client:
- In a command prompt or terminal, change to the
InstallDir/examples/cxf-osgi directory
. - Run the following command:
mvn compile exec:java
If the client request is successful, a response similar to the following is returned to the command window:the response is =====> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body> <ns2:sayHiResponse xmlns:ns2="http://cxf.examples.servicemix.apache.org/"> <return>Hello John Doe</return></ns2:sayHiResponse></soap:Body></soap:Envelope>
the response is =====> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body> <ns2:sayHiResponse xmlns:ns2="http://cxf.examples.servicemix.apache.org/"> <return>Hello John Doe</return></ns2:sayHiResponse></soap:Body></soap:Envelope>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow