In the context of the swiss EPR, there is a timeout issue, which should be solved by the possibility to configure the timeout time.
Create a Spring bean of the type org.apache.cxf.transports.http.configuration.HTTPClientPolicy. In this bean, set the attributes connectionRequestTimeout and/or receiveTimeout to the desired values in milliseconds, or 0 (zero) for an infinite timeout. Example using Spring Boot:
@Bean
public HTTPClientPolicy myHttpClientPolicy() {
var policy = new HTTPClientPolicy();
policy.setConnectionRequestTimeout(0L);
policy.setReceiveTimeout(0L);
return policy;
}
Reference this bean in the client endpoint URL parameter httpClientPolicy, e.g.:
In the context of the swiss EPR, there is a timeout issue, which should be solved by the possibility to configure the timeout time.