Nav
You are viewing an older version of this topic. To go to a different version, use the version menu at the upper-right. +

Using HTTP GET Requests

CXF has built-in support for understanding GET requests, which use the following format:

http://host/service/OPERATION/PARAM_NAME/PARAM_VALUE

For example:


       
    
1
2
3
4
5
6
7
8
9
@WebService(endpointInterface = "org.mule.samples.echo.components.EchoService",
    serviceName = "echo")
public class EchoComponent implements EchoService
{
    public String echo(String string)
    {
        return string;
    }
}

The above Echo service is hosted in Mule on the endpoint cxf: http://localhost:65081/services/EchoUMO, so you can access the service from a simple web browser by typing the following:

This will send the value "hello" for the string parameter to the echo() method.

Due to a bug in CXF, this is only supported with the JAX-WS frontend.

We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used and to tailor advertising. You can read more and make your cookie choices here. By continuing to use this site you are giving us your consent to do this.

+