Questions tagged [webservicetemplate]

55 questions
14
votes
1 answer

How to build SOAP client in Spring?

I am able to send requests to the web service using javax.xml.soap.*, I would like to covert the code to use webServiceTemplate. I am struggling with creating request and result objects. (sample Ive found is related to xml not SOAP) I am also…
Daniel Newtown
  • 2,873
  • 8
  • 30
  • 64
5
votes
1 answer

java.lang.UnsupportedOperationException when set connection timeout to HttpComponentsMessageSender

I have a code to send messages to a server using SOAP. My code look like this: private WebServiceTemplate makeTemplate() throws Exception { WebServiceTemplate localTemplate = new WebServiceTemplate(); Jaxb2Marshaller marshaller =…
Conde
  • 785
  • 15
  • 31
5
votes
3 answers

spring & web service client - Fault Detail

How could I get the Fault Detail sent by a SoapFaultClientException ? I use a WebServiceTemplate as shown below : WebServiceTemplate ws = new…
user18714
  • 91
  • 2
  • 3
  • 3
4
votes
0 answers

Is there another way to get WebServiceTemplate in Spring Boot than WebServiceGatewaySupport#getWebServiceTemplate()?

Spring provides the org.springframework.ws.client.core.support.WebServiceGatewaySupport class, which is according to the Spring documentation a convenient super class for application classes that need Web service access. The class is apparently…
Honza Zidek
  • 9,204
  • 4
  • 72
  • 118
4
votes
0 answers

Using Spring-WS getWebServiceTemplate().marshalSendAndReceive How do I specify Jaxb2Marshaller to use Eclipse Moxy Jaxb Implementation

I need to marshall an object using eclipse moxy with spring-ws. I'm running a spring-boot project with spring-ws. I have included the moxy jar and all of the jaxb.properties files in all of the model directories. How do I make Spring-WS use the moxy…
4
votes
1 answer

Handling Fault Responses from Spring's WebServiceTemplate.marshalSendAndReceive

I'm working with Spring's WebServiceTemplate.marshalSendAndReceive(Object, WebServiceMessageCallback) method and I'm having great difficulty understanding how to handle errors properly. Right now I'm calling a SOAP service that will respond with the…
Kyle
  • 14,036
  • 11
  • 46
  • 61
3
votes
4 answers

Cannot Add Http Headers to Message with Spring's WebServiceTemplate

I have a fairly simple case where I am trying to add HTTP headers (not SOAP headers) to a request I am making using Spring's WebServiceTemplate. I have defined a ClientInterceptor where I am doing: @Override public boolean…
Hasan Can Saral
  • 2,950
  • 5
  • 43
  • 78
2
votes
1 answer

Spring-WS: NullPointerException when trying to setNameSpaceAware with WebServicesParserFactory

This is a long shot, but I'm trying to write a web service client with Spring-WS. I'm getting a NullPointerException with the following code: public class WebServiceProcess { private WebServiceTemplate webServiceTemplate = new…
2
votes
1 answer

SpringBoot WebService Client Unable to load data security for user ANONYMOUS Exception

I have written a Spring Boot Application which is having both Spring Boot Web and Spring Boot Webservices. My POM looks like following:
Rehan Azher
  • 1,340
  • 1
  • 9
  • 17
2
votes
1 answer

Provide different ClientInterceptor per request using Spring Web Services

I've created a custom web service client by extending WebServiceGatewaySupport and also implement custom ClientInterceptor to log some request/response data. I have to create new interceptor for every call because it has to store some data about the…
KRonst
  • 21
  • 2
  • 4
2
votes
1 answer

JAXB.marshal blocking webservice call

I am using Spring WebserviceTemplate to make SOAP call to a service. I ran performance test to see how it behaves under load. I also have a interceptor to copy the header parameters from my incoming request over to the service I am…
Punter Vicky
  • 15,954
  • 56
  • 188
  • 315
2
votes
0 answers

Calling async Soap Webservice using Spring WebserviceTemplate which does not contain any response

I am calling ayncronus web service using WebserviceTemplate which does not return any response it only responds with 202 Accepted. I call using wsTemplate.marshalSendAndReceive(profileRequest, new WebServiceMessageCallback() { .... } I am receiving…
2
votes
1 answer

Spring web service client cannot start

I am using spring web services to consume some soap web services. It has been working ok until I added a new package into my marshaller, unmarshaller beans.
Deibys
  • 619
  • 3
  • 9
  • 18
2
votes
1 answer

Sending a SOAP Request with Pre-Emptive Basic Authentication

I am trying to make a SOAP service request using Spring WebServiceTemplate however I always get error. While the same request gives a successful response when I use SOAP UI. The only thing I do differently in SOAP UI is, I select a radio button…
2
votes
1 answer

How to consume third party WSDL services in Spring MVC

I wrote some services (used by an Android app) which takes a request and sends th response in json. Now I have a scenario where I have to consume a third party web service, through a provided WSDL file. I don't know how to do this, can anyone…
srihari
  • 397
  • 2
  • 7
  • 18
1
2 3 4