Questions tagged [webservicetemplate]
55 questions
2
votes
1 answer
Spring WebserviceTemplate not being registered
I am getting an error which i am not able to figure out what it is for related to Spring WebserviceTemplate.
here is the Class definition: (Interesting part is if i Remove the @Service annotation, it works fine.)
@Service
public class…

mandy
- 735
- 1
- 9
- 24
2
votes
1 answer
Spring 3 webservice template for different webservice calls?
I am new to using WebserviceTemplate to make client calls.
I can use marshalSendAndReceive(request) for a single exposed WS. Within my client I need to call other WS too. In my SpringConfig.xml,
the jaxbMarshaller is defined with a…

scs075
- 33
- 1
- 5
2
votes
1 answer
Spring jaxb WebServiceGatewaySupport implementation java.lang.IllegalArgumentException
I'm working in jaxb with Spring, trying to write a custom unmarshalling process using WebServiceGatewaySupport.
My class is below. The problem is with response, when I call the following…

d-man
- 57,473
- 85
- 212
- 296
2
votes
1 answer
WebServiceTemplate - difference between Interceptor and Callback?
I'm trying to write my first client using Spring-WS and am getting a little confused at some basics. I need to insert a SAML token into the header, and I've noticed that the WebServiceTemplate class allows for both Interceptors and…

Eric B.
- 23,425
- 50
- 169
- 316
1
vote
0 answers
PoolingHttpClientConnectionManager - TTL Constructor & related issues
I was creating HttpComponentsMessageSender bean as below
@Bean
public HttpComponentsMessageSender reservationHttpComponent() {
HttpComponentsMessageSender httpComponentsMessageSender = new HttpComponentsMessageSender();
…

atul sachan
- 597
- 5
- 10
1
vote
1 answer
Spring WebServiceTemplate add value to Cookie header
I have to add an information in the cookie of a request that my application sends to another application,
but it doesn't seem to be added correctly.
When I check the request with WireShark, I see two Cookie headers in the headers :
POST /service…

Minemosynne
- 43
- 5
1
vote
0 answers
Spring - WebServiceTemplate with socks proxy
I want to make SOAP request using proxy, but I need to use SOCKS instead of HTTP. Using java.net.Proxy I can build something like this:
Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("host", port));
Is there a way to pass this…

blaiz128
- 115
- 9
1
vote
1 answer
PKIX path building failed - Spring Boot Service on OpenShift
I try to call a SSL secured Webservice from a Spring Boot Service running inside a Docker Container on OpenShift Platform.
I get the following error:
org.springframework.ws.client.WebServiceIOException: I/O error:…

Daniel Pomrehn
- 791
- 3
- 8
- 23
1
vote
1 answer
Call SOAP service asynchronously using Spring
I've to call a SOAP web service asynchronously. Currently, I'm calling it in a synchronous way using Spring webservicetemplate.
Current config is like:

rupesh
- 413
- 9
- 19
1
vote
1 answer
HttpComponentsMessageSender - Default max total connection
I am setting HttpComponentsMessageSender as messageSender for WebserviceTemplate. What is the maxTotalConnections that HttpComponentsMessageSender has by default? Will it cause the webservice connection to external services to wait if it reaches the…

Punter Vicky
- 15,954
- 56
- 188
- 315
1
vote
0 answers
Working with Spring WebServiceMessage
I have code that uses Spring's WebServiceTemplate to invoke a SOAP service.
Currently it uses:
public Object marshalSendAndReceive(String uri, final Object requestPayload)
But I would like to manipulate the content both inbound and outbound. The…

slim
- 40,215
- 13
- 94
- 127
1
vote
1 answer
JUnit for Spring WebServiceTemplate not working
I am consuming a SOAP Webservice using Spring WebServiceTemplate. While executing the JUnit I am facing an issue.
My Client class:
@Service
public class MyWsClient extends WebServiceGatewaySupport {
@Autowired
private WebServiceTemplate…

rupesh
- 413
- 9
- 19
1
vote
0 answers
Spring WebserviceTemplate uses JMS as messageSender
In one of the projects I worked on the architect used Spring WebserviceTemplate in most of the backend services and its definition in xml config is like:
…

J.E.Y
- 1,173
- 2
- 15
- 37
1
vote
1 answer
WebServiceTemplate object is null after initializing once
I am stuck in this problem don't know what I am doing wrong.
I am consuming the SOAPWS & when I call that webservice it gives exception & i checked that WebServiceTemplate object is null but once it got initialized in the constructor.
At the moment…

user3548196
- 355
- 1
- 9
- 32
1
vote
1 answer
How to fix an invalid XML so it can be consumed by Spring WebServiceTemplate
I'm using Spring's WebServiceTemplate to consume a Soap service. Once in a while this Soap service responds with an invalid XML. I would like to intercept its parser and fix the invalid XML before it is parsed. How could I do that? Right now I'm…

Douglas Mendes
- 322
- 2
- 12