1,255 questions
Best practices
0
votes
0
replies
54
views
Spring WS / WebServiceTemplate + Wss4jSecurityInterceptor - different credentials per Request
Problem:
I need kind of a client to communicate with WebService via SOAP in Java - Spring application. And I have one endpoint / resource and various users who have different certificates to obtain ...
0
votes
1
answer
169
views
How to get AxiomSoapMessage in spring ws 4.0.8
I upgrade the Spring Boot version from 2.7 to 3.4.2, Spring WS version to 4.0.8.
I found the axiom package was removed from org.springframework.ws.soap, how can I get AxiomSoapMessage from ...
0
votes
0
answers
28
views
Testing Spring WS - how test BadRequest
I would like test my service return a 400 Bad request when it receive a payload with bad attribute.
I'm using an valid payload and add an invalid attribut. In SOAP-UI, it return a 400 bad request, but ...
0
votes
1
answer
102
views
Spring Boot 3 missing support for StaX
I have SOAP web service built up on Spring Boot 3 - Spring WS. Unfortunately, the service does not fulfil performance expectations, thus, it would be great to enable StaX (Streaming API for XML), ...
0
votes
0
answers
85
views
How to configure spring boot web service for message decryption?
I'm trying to get a spring boot webservice up and running that is able to decrypt a request using the Wss4jSecurityInterceptor.
Without encryption the server works fine. But if I enable encryption the ...
0
votes
1
answer
121
views
WebSocketMessageBroker is not working as expected after upgrade to Spring Boot 3.3.5
I have an application that exposes WebSocket endpoint with following config
@Configuration
@EnableWebSocketMessageBroker
public class WebSocketConfig implements WebSocketMessageBrokerConfigurer {
...
3
votes
0
answers
75
views
JAXB 4.X.X can't serialize parent class' field if same field exists on another child class
We've upgraded from JAXB 3.0.2 to 4.0.5 and serializing a field on a set of objects has started failing. I rolled back versions and it seams to first appear in JAXB 4.0.0.
The java objects are ...
0
votes
0
answers
340
views
How can I validate the SOAP Security Header using Spring Boot 3 & Spring WS Security
I have recently upgraded my Spring Boot SOAP Web Services Project to Spring Boot v3.2.3.
I need to validate the SOAP Security Header against an external system making a REST call.
I have gone through ...
0
votes
1
answer
1k
views
Spring WS 4.0.11 class com.sun.xml.messaging.saaj.soap.SAAJMetaFactoryImpl cannot be cast to class jakarta.xml.soap.SAAJMetaFactory
I'm Trying to upgrade springboot 2.7.18 to 3.3.1 which includes Spring WS 4.0.11.
I use WebServiceTemplate and My configuration is like this:
private WebServiceTemplate buildWebServiceTemplate(...
1
vote
0
answers
83
views
Make Actuator output JSON instead of XML
I am using XmlMapper widely in the Spring Boot application.
I have declared a mapper config like:
@Configuration
@RequiredArgsConstructor
public class JacksonMapperConfig {
@Bean
public ...
0
votes
0
answers
105
views
add xml declaration in soap ws springboot project
I would need the response of the provided service to have the xml declaration. i have searched but could not find a solution that i can integrate into my code.
Any suggestions are appreciated!
this is ...
0
votes
0
answers
115
views
Namepaces gets added to the XML response after the conversion of the service from non-spring boot to spring boot
One of our service which works on SOAP protocol was converted from non-spring boot to spring boot microservice.
On the older code Axis OMElement was responsible to give the response. In Newer code we ...
0
votes
1
answer
99
views
Why did the SOAP service (jax-ws) is stopped on Linux OS after a time and WebServiceTransportException: Unauthorized [401]] throwed?
I have developed a soap application and am sending requests to the required service. The problem is that after some time an exception is thrown:
Stacktrace:
Servlet.service() for servlet [...
0
votes
0
answers
116
views
Consuming Soap Service - JDK11 - Webservice Transportation Exception
Error I'm getting:
"Error: org.springframework.ws.client.WebServiceTransportException: Not Found [404]"
I was getting quite a bit of JaxB errors but was able to get around those. I've been ...
1
vote
0
answers
174
views
How to generate WSDL based on another SOAP service?
I am developing a SOAP service based on Spring WebServices, which, according to a business task, must proxy a SOAP request through itself.
My problem is that I can't get a correctly generated WSDL at ...