Nagesh
Nagesh

Reputation: 347

Spring SOAP Webservice Consumer/Client example using apache HttpClient5

Spring SOAP Webservice Consumer/Client example using apache HttpClient5

Spring SOAP Webservice is still using HttpClient implementation, HttpClient 4.x. When I open the Spring WS API for org.springframework.ws.transport.http.HttpComponentsMessageSender to set ConnectionTimeout, it still uses HttpClient 4.x java classes.

But I am looking for Spring SOAP WebService using apache HttpClient5 component classes.

Can someone help here to provide the equivalent example.

Please dont give me old examples.

I am using Java 17, SpringBoot 3.0.1, Spring-ws-core 4.0.0

I referred internet, here are some of the below URLs

https://hc.apache.org/httpcomponents-client-5.2.x/migration-guide/index.html

https://snehapatil02.medium.com/soap-web-service-client-with-spring-boot-3c7034351c46

How to set timeout in Spring WebServiceTemplate

Upvotes: 0

Views: 2996

Answers (1)

M. Deinum
M. Deinum

Reputation: 124471

It is still in the works.

If you really want to use it you can always use the ClientHttpRequestMessageSender, which uses the Spring Framework ClientHttpRequest abstraction, which does support Apache Http Client5.

Upvotes: 1

Related Questions