Ce contenu n'est pas disponible dans la langue sélectionnée.

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

To run the web client:
  1. Open the client.html, which is located at the root of the cxf-osgi example folder.
  2. Click the Send button 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

To run the Java client:
  1. In a command prompt or terminal, change to the InstallDir/examples/cxf-osgi directory.
  2. 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>
    Copy to Clipboard Toggle word wrap
Retour au début
Red Hat logoGithubredditYoutubeTwitter

Apprendre

Essayez, achetez et vendez

Communautés

À propos de la documentation Red Hat

Nous aidons les utilisateurs de Red Hat à innover et à atteindre leurs objectifs grâce à nos produits et services avec un contenu auquel ils peuvent faire confiance. Découvrez nos récentes mises à jour.

Rendre l’open source plus inclusif

Red Hat s'engage à remplacer le langage problématique dans notre code, notre documentation et nos propriétés Web. Pour plus de détails, consultez le Blog Red Hat.

À propos de Red Hat

Nous proposons des solutions renforcées qui facilitent le travail des entreprises sur plusieurs plates-formes et environnements, du centre de données central à la périphérie du réseau.

Theme

© 2025 Red Hat