client-endpoint-url is required

Since Quarkus CXF 4.0.0, every client must have the URL of the remote service endpoint set via quarkus.cxf.client."client-name".client-endpoint-url:

application.properties
quarkus.cxf.client.myCalculator.client-endpoint-url = https://example.org/calculator-ws/CalculatorService
quarkus.cxf.client.myCalculator.service-interface = org.jboss.eap.quickstarts.wscalculator.calculator.CalculatorService

There is no default value. If you omit the client-endpoint-url property, the client fails when it is created with a message like the following:

Cannot create the client myCalculator for the service interface org.jboss.eap.quickstarts.wscalculator.calculator.CalculatorService, because quarkus.cxf.client.myCalculator.client-endpoint-url is not set

A client is created when the bean it is injected into is instantiated. Hence the failure may happen at application startup or later, depending on the scope of that bean.

The following does not make client-endpoint-url optional:

Clients injected without a name

A client injected via @CXFClient without a client name is associated with the only quarkus.cxf.client."client-name" having service-interface set to the given service endpoint interface. If there is no such configuration, the client fails when it is created. If there are multiple such configurations, the application fails at build time. In that case, inject the client using an explicit client name, such as @CXFClient("myClient").

Historical note

Before Quarkus CXF 4.0.0, a client without client-endpoint-url was sending requests to http://localhost:8080/{sei}, where {sei} is the fully qualified class name of the service endpoint interface in lower case.

Before Quarkus CXF 4.0.0, the configurations having quarkus.cxf.client."client-name".alternative set to true were ignored when looking up the configuration for a client injected without a client name. That option is not supported anymore and setting it causes a build time failure.