Questions tagged [webservicetemplate]

55 questions
1
vote
2 answers

WebService config WebServiceTemplate with defaultUri parameter dynamically

I'm having a problem on my work that I will need some help. I have a WebServiceTemplate configuration like below:
1
vote
2 answers

SSLHandshakeException talking to a https Web service using Spring WebServiceTemplate

I am getting the below error talking to a https webservice. org.springframework.ws.client.WebServiceIOException: I/O error: sun.security.validator.ValidatorException: PKIX path building failed: …
user3097172
  • 41
  • 1
  • 4
0
votes
0 answers

With Open Jdk 19 , Cannot find SOAP wrapper for element [soap:Fault: null]

We are consumng soap service and it was worlking very well when we were using Java 8 and Spring boot 2.X When we are migrating to open Jdk 19 and Spring Boot 3.x which uses Jakarta It has exception when soap fault. Not able to parse soap fault and…
0
votes
0 answers

Formatting violation during execution webServiceMessage.writeTo

Please help We use WebServiceTemplate.marshalSendAndReceive, where do we pass the url, pojo, and WebServiceMessageCallback And use interceptor where ByteArrayTransportOutputStream byteArrayTransportOutputStream = new…
oliaaa_s
  • 59
  • 5
0
votes
0 answers

WS Webservice template UnsupportedCallbackException

I am facing an issue with invoking webService template with ws security using keystores and interceptors, it returns org.apache.wss4j.common.ext.WSSecurityException: Callback supplied no password for:…
0
votes
1 answer

org.springframework.oxm.UncategorizedMappingException: Unknown JAXB exception using Spring WebserviceTemplate

Have a Java based application uses different maven projects to connect to different webservices, application already had an existing maven project(say project1) which uses webServiceTemplate to call the SOAP based service and get the response. I…
saathvik
  • 5
  • 1
  • 3
0
votes
1 answer

Mockito and mock webservicetemplate

I use mockito 3 as follow: Mockito.when(webServiceTemplate.marshalSendAndReceive(Mockito.anyString(), ArgumentMatchers.>any())) …
user2520969
  • 1,389
  • 6
  • 20
  • 30
0
votes
0 answers

How to mock getWebServiceTemplate().marshalSendAndReceive() response

I'm consuming soap service in spring boot with spring soap client and writing unit test. How can I mock getWebServiceTemplate().marshalSendAndReceive() Tried almost everything but couldn’t get it to work. Any guidance would be greatly appreciated
user8453102
0
votes
1 answer

Springws and MTOM client KO when pass through a balancer

I have a problem with a client that sends a pdf binary document with MTOM enabled to a soapservice. The service is correctly exposed and served. When i call the endpoint of the server that expose the service all goes ok, when i call the same service…
ThePrestige
  • 145
  • 1
  • 7
0
votes
3 answers

WebServiceTemplate performance issue with spring boot

I am consuming soap web services using WebServiceTemplate its working fine with good performance in spring3+ . spring :- 3.2.4.RELEASE spring-ws-core :- 2.1.4.RELEASE spring-ws-support :- 2.1.4.RELEASE spring-ws-security :-2.1.4.RELEASE Class for…
Sandeep Bhardwaj
  • 1,310
  • 1
  • 18
  • 24
0
votes
2 answers

How to retrieve information about certificate in WebServiceTemplate?

I want to retrieve Common Name (CN) property from client certificate in SOAP communication. I'm using Spring WebServiceTemplate to create my webservice endpoint. I have already implemented WS mutual authentication following the example. Is there…
0
votes
1 answer

Spring WS - Looking for Request header/payload and Response header/payload Example

I am required to develop Web Service using the Spring Framework. Scenario is like this: My program will send a SOAP request (header + payload) to a service and expects a response (header + payload) back from the service. Both the payload and header…
0
votes
0 answers

Memory Leak : org.springframework.ws.client.core.WebServiceTemplate

During the load testing of invoking the SAOP Endpoint We were using Spring related: WebServiceTemplate JAXBElement resp = (JAXBElement) webServiceTemplate.marshalSendAndReceive(request); On…
Syed Rafi
  • 825
  • 2
  • 12
  • 35
0
votes
1 answer

Multiple WebServiceTemplate and SaajSoapMessageFactory performance

I am trying to improve the start up performance of an existing application. This application is currently making service calls to another 8 applications, therefore there are 8 service beans extending WebServiceGatewaySupport. Each of these service…
Oboluse
  • 61
  • 1
  • 9
0
votes
2 answers

Getting 401 unauthorized for the first time using [org.apache.http.client] HttpClient 4.1.1

The first request made to the messageSender via a webservicetemplate using credential is failing with 401 unauthorized, but second time it is all okay and works well. Configuration:
coldy
  • 2,115
  • 2
  • 17
  • 28