resttemplate

I am using RestTemplate Client Code and Want to access Image on Server side. I want to upload image on custom Directory of Tomcat, i am getting error: Caused by: org.springframework.web.client.RestClientException: Could not write request: no suitable

I have an android application where i am using spring security for authentication and authorization purpose at the server end.At first user enters the user name and password and send it via request using Rest Template to the server controller for aut

I have a Spring REST interface and the controller is making the conversion from DTO to Business Entity objects. The Service layer operates on Business Entity objects. However, If my Business Layer wants to call external REST interfaces, where should

I have a Spring Boot web application with presentation, business logic, data access logical tiers. Is it conceptually correct to describe external interface calls (REST, WS) to be in the Data Access Layer? I.e. also where database access resides. Con

I'm making a rest call to an endpoint that returns a multipart/mixed payload. Here's the call using Spring's RestTemplate: ResponseEntity<String> res = template.exchange(queryStr, HttpMethod.GET, entity, String.class); I know I can get the entire bo

I'm consuming a web service using Spring's RestTemplate and deserializing with Jackson. In my JSON response from the server, one of the fields can be either an object or a list. meaning it can be either "result": [{}] or "result": {}.

I looked over many questions with same error, but couldn't find mine. I'm using RestTemplate, Spring 4.2.4, Jackson 2.6.4. Sending 2 requests, one after another, both post requests to same server, both of ParameterizedTypeReference as response type.

We are using the Spring Boot and the AsyncRestTemplate to make asynchronous requests to another server. Looking at the logs, I can see the request is executed straight away however there is the odd occasion where there is a delay in executing the req

I am having problems when I try to call an endpoint using GET and passing a parameter into URL with special character like 'ñ': Example: parameters.add("name", "Añisc"); Person person = rest.getForObject(url.toUri(), Person.class, para

Is there a way to force RestTemplate to use a certain HttpMessageConverter for a specific message ? For some reason, I send an object as payload, and even though the annotation are Json's (@JsonCreator, @JsonProperty...) it uses MappingJackson2XmlHtt

I have an application with Spring, and I need to call many different types of back-end systems (legacy mainframe, ESB, RESTful...). If we take e.g. REST, I can implement a RESTful client with e.g. RestTemplate. I can A) have developers use RestTempla

Deploying a Spring Boot application in WebSphere. Due to their SSL configuration, we need to explicitly specify the SSLSocketFactory to ensure the application uses the WebSphere certificates and not the default Java key/trust stores. Doing this via t

I have REST API with property in application.properties as below: spring.jackson.property-naming-strategy: CAMEL_CASE_TO_LOWER_CASE_WITH_UNDERSCORES Everything is OK! But when I use RestTemplate to do as below, but I found all key in Snake Case is nu

I don't understand how to use AsyncRestTemplate effectively for making external service calls. For the code below: class Foo { public void doStuff() { Future<ResponseEntity<String>> future1 = asyncRestTemplate.getForEntity( url1, String.class)

Have an external Restful Web Service which takes in JSON payloads if its is more than one input but if its a single input it just needs the value. For example, for multiple inputs, this works: curl -H "Content-Type: application/json" -X POST -d

I'm using Spring RestTemplate to write a RESTful client. I need to intantiate the HTTP Chunk mode on client side, so I can read chuncked data sent by the server I'm calling. Can anyone help me how to do that? I've already searched on the internet for

Spring HttpMessageConverterExtractor extracts the chunked data length from the response entity and when it is parsed by Jackson results in an invalid JSON parse exception. Quick background, the chunk length is always written before the chunked payloa

Can anyone tell why this didn't work? The code works great when I run it from my unit tests. Security gets setup perfectly and our service works great just like I expect. However, when I deployed it to our application server (weblogic), my service fa