Este contenido no está disponible en el idioma seleccionado.

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
Volver arriba
Red Hat logoGithubredditYoutubeTwitter

Aprender

Pruebe, compre y venda

Comunidades

Acerca de la documentación de Red Hat

Ayudamos a los usuarios de Red Hat a innovar y alcanzar sus objetivos con nuestros productos y servicios con contenido en el que pueden confiar. Explore nuestras recientes actualizaciones.

Hacer que el código abierto sea más inclusivo

Red Hat se compromete a reemplazar el lenguaje problemático en nuestro código, documentación y propiedades web. Para más detalles, consulte el Blog de Red Hat.

Acerca de Red Hat

Ofrecemos soluciones reforzadas que facilitan a las empresas trabajar en plataformas y entornos, desde el centro de datos central hasta el perímetro de la red.

Theme

© 2025 Red Hat