Questo contenuto non è disponibile nella lingua selezionata.

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
Torna in cima
Red Hat logoGithubredditYoutubeTwitter

Formazione

Prova, acquista e vendi

Community

Informazioni sulla documentazione di Red Hat

Aiutiamo gli utenti Red Hat a innovarsi e raggiungere i propri obiettivi con i nostri prodotti e servizi grazie a contenuti di cui possono fidarsi. Esplora i nostri ultimi aggiornamenti.

Rendiamo l’open source più inclusivo

Red Hat si impegna a sostituire il linguaggio problematico nel codice, nella documentazione e nelle proprietà web. Per maggiori dettagli, visita il Blog di Red Hat.

Informazioni su Red Hat

Forniamo soluzioni consolidate che rendono più semplice per le aziende lavorare su piattaforme e ambienti diversi, dal datacenter centrale all'edge della rete.

Theme

© 2025 Red Hat