spring-webclient Questions
1
Solved
I have a small Spring Boot 2.2 batch that writes to an OAuth2 REST API.
I have been able to configure the WebClient following https://medium.com/@asce4s/oauth2-with-spring-webclient-761d16f89cdd ...
Leanoraleant asked 14/1, 2020 at 15:1
1
We're moving away from the spring-cloud Netflix OSS ecosystem one step at a time. Currently we're implementing spring-cloud-loadbalancer and removing Ribbon.
However we used to have a lot of static...
Inning asked 14/1, 2020 at 12:58
1
I use web client to post a third-party API, the third-part API return response like following:
{
"RetailTransactionGenericResponse": {
"authID": 1146185,
"product":...
Wistrup asked 16/2, 2021 at 23:11
0
While upgrading one project to spring webflux 5.3.3 I noticed that the Webclient.exchange method was getting deprecated (link).
I already read the question Spring WebFlux 5.3.0 - WebClient.exchange...
Pokeberry asked 29/1, 2021 at 13:33
1
Solved
I've been learning Spring Webflux and reactive programming and have gotten stuck on a problem I'm trying to solve around retry logic using Spring Webclient. I've created a client and made successfu...
Herra asked 15/1, 2021 at 22:5
1
Solved
I'm using Spring MVC to develop some controllers.
I would like to write some scenario integration tests which will involve calling multiple controllers of my application.
Normally I would have just...
Softa asked 6/1, 2021 at 14:14
1
Spring Framework in RestTemplate documentation has note:
NOTE: As of 5.0 this class is in maintenance mode, with only minor
requests for changes and bugs to be accepted going forward. Please,
cons...
Emancipator asked 14/11, 2020 at 21:43
1
Solved
Would like to ask a question about two technologies.
We first started with an application that has to call other third parties rest API, hence, we used the Webflux WebClient in our SpringBoot Webfl...
Somehow asked 24/9, 2020 at 17:5
2
I want to create WebClient from HttpComponent's org.apache.http.client.HttpClient to use it in async operations.Any idea on how to do it
Parris asked 9/8, 2018 at 11:22
2
Solved
How To use spring boot webclient for posting request with content type application/x-www-form-urlencoded
sample curl request with content type `application/x-www-form-urlencoded'
--header 'Content-...
Transfinite asked 17/1, 2020 at 17:28
1
Solved
I need to make a syncronous, blocking request, and I'm using Spring's WebClient instead of Spring's RestTemplate due to the latter being deprecated. I don't need the reactive features in this case,...
Lowering asked 17/7, 2020 at 21:15
1
I'm supposed to download a ZIP file from 3rd party API. However, when I'm using Spring Webclient I end up with an empty file. Any ideas what I'm doing wrong? What is the proper way to store the con...
Smoke asked 14/7, 2020 at 15:4
1
I have to access one https rest web service(https://example.com) for which certificate has been provided by the client which contains 2 .cer files.
I have created keystore.jks and truststore.jks ...
Alysa asked 22/4, 2020 at 20:11
3
I want to pass path variable using name in web client. I could pass query param by key value pair but how to pass path variable.
For query param, we can do like this by passing key value pair
th...
Stereoscope asked 16/6, 2020 at 6:57
1
Solved
In my Spring Boot application, I was using RestTemplate to call a WS for which the body HMAC signature should be provided as HTTP header. To do this I was using a ClientHttpRequestInterceptor. Basi...
Hunt asked 17/12, 2019 at 20:0
2
Solved
I am a newbie to reactive programming and I am using Spring WebFlux's WebClient to make a POST request to the below URL as part of my Spring Boot application to assign an existing quiz to a candida...
Altruistic asked 16/5, 2020 at 15:7
1
Solved
I've got a lot of methods that use the onStatus API from Spring's WebClient:
@Override
public Mono<Accommodation> createAccommodation(CreateAccommodation create) {
return webClient
.post()
...
Cartage asked 7/5, 2020 at 15:39
2
Solved
I am upgrading my service and implementing webclient using oAuth2, and I am getting exception is"tokenType cannot be null" could you please help me to resolve that.
exception:
org.springframework....
Morn asked 30/10, 2019 at 16:10
0
My spring boot application wants to use Webclient to make an http request (XML request body) and receives XML response. Hence I created another spring boot application with jackson-dataformat-xml a...
Forage asked 9/4, 2020 at 7:56
1
I'm trying to add a conditional Retry for WebClient with Kotlin Coroutines + WebFlux.fn + reactor-addons:
suspend fun ClientResponse.asResponse(): ServerResponse =
status(statusCode())
.headers ...
Woodnote asked 24/3, 2020 at 8:18
1
Solved
I am getting a NoClassDefFoundError on the line where I try to create WebClient instance using 'create'. Tried builder() but still the same thing.
Please tell me what's wrong with the dependencies ...
Franks asked 17/3, 2020 at 21:11
4
Solved
It seems like it the Spring RestTemplate isn't able to stream a response directly to file without buffering it all in memory. What is the proper to achieve this using the newer Spring 5 WebClient? ...
Elecampane asked 19/5, 2019 at 17:12
0
I have a REST service that takes an id and two strings as json and returns the id and the two strings concatenated as json. If there errors it can return statuscodes 400, 404 and 500 with a json er...
Glume asked 20/2, 2020 at 10:40
1
Solved
I am using Spring WebFlux where I am taking request and using same request to call another service. But I am not sure how to add query parameters. This is my code
@RequestMapping(value= ["/ptta-se...
Kono asked 26/1, 2020 at 5:22
1
Solved
Is it possible to configure WebClient to use a custom thread pool other than the reactor-http-nio thread pool (When using Netty)? If it is possible , can we somehow restrict that custom thread pool...
Provoke asked 26/6, 2019 at 3:34
© 2022 - 2024 — McMap. All rights reserved.