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:
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:
-
An address available in the
wsdl:portelement of the WSDL set viaquarkus.cxf.client."client-name".wsdl. That address is ignored. -
Setting the address via
jakarta.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTYbefore each request as described in Dynamic client configuration.
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 Before Quarkus CXF 4.0.0, the configurations having
|