Questions tagged [spring-ws]

Spring Web Services is a product of the Spring community focused on creating document-driven Web services. Spring Web Services aims to facilitate contract-first SOAP service development, allowing for the creation of flexible web services using one of the many ways to manipulate XML payloads.

Spring Web Services is a product of the Spring community focused on creating document-driven Web services. Spring Web Services aims to facilitate contract-first SOAP service development, allowing for the creation of flexible web services using one of the many ways to manipulate XML payloads.

Spring Web Services includes practices such as the WS-I basic profile, Contract-First development, and having a loose coupling between contract and implementation. Incoming XML messages can be handled in standard JAXP APIs such as DOM, SAX, and StAX, but also JDOM, dom4j, XOM, or even marshalling technologies. The Object/XML Mapping module in the Spring Web Services distribution supports JAXB 1 and 2, Castor, XMLBeans, JiBX, and XStream. It also supports WS-Security, which allows you to sign SOAP messages, encrypt and decrypt them, or authenticate against them.

As of March 2011, the current version of the Spring Web Services is 2.0.1, who's reference manual can be found here.

1261 questions
6
votes
0 answers

Why is a SoapActionCallBack sometimes necessairy?

I'm working on a webservice client using Spring-WS. It's not my first webservice project, using Spring-WS. But I am new in this particular project. We generate dao-objects by using the maven-jaxb2-plugin. I'm using Spring-WS WebServiceTemplate, with…
Kornelito Benito
  • 1,067
  • 1
  • 17
  • 38
6
votes
1 answer

Specify operation order in Spring generated WSDL

We are using WSSpringServlet (Spring 4.10) for publishing an autogenerated WSDL, but it seems to generate different WSDL on each start-up. Is there a way to force any strict sorting? Even alphabetical would be good enough.
Gedrox
  • 3,592
  • 1
  • 21
  • 29
6
votes
3 answers

Spring Boot web service client authentication

My goal is to call web service, which is require authentification (when I opne it's wsdl in my browser, browser asks me login+password). As a base, I use the sample from this tutorial. And now I have to add authentification configurations. Accoding…
Victoria Agafonova
  • 2,048
  • 10
  • 33
  • 50
6
votes
2 answers

how to set proxy server details on WebServiceTemplate

I have a SOAP webservice endpoint url(let's say :"EP1") which we can connect only through a proxy server. We are using org.springframework.ws.client.core.WebServiceTemplate class to consume webservices. My question is, Is there a way that I can…
september
  • 73
  • 1
  • 1
  • 3
6
votes
4 answers

How to configure PayloadValidatingInterceptor using annotation

I am trying to develop a Spring webservice and followed this tutorial https://spring.io/guides/gs/producing-web-service/ The project structure(and the configuration class names) are same as mentioned in the tutorial. I am trying to do all possible…
AC_1985
  • 183
  • 9
  • 22
6
votes
3 answers

How can a Spring Soap interceptor modify the contents of a message?

I'm trying to write an interceptor for a web service that will modify the contents of the Soap message before is sent on to the endpoint. If a client sent a message where the value of some element is 1, I want to be able to alter that element to a…
Dave
  • 888
  • 2
  • 8
  • 9
6
votes
2 answers

java.lang.NoClassDefFoundError: org/springframework/security/authentication/AuthenticationManager

I am trying to implement authentication on Spring web service by referring the following link: http://docs.spring.io/spring-ws/site/reference/html/security.html Following is the configuration I have added:
user3619997
  • 197
  • 2
  • 2
  • 12
6
votes
3 answers

No org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender in 2.1.4

I have an application using org.springframework.ws,/em> 2.1.4.RELEASE which is now requires to use SSL. I was hoping to inject the org.springframework.ws.transport.http.HttpsUrlConnectionMessageSender into the…
PassoGiau
  • 587
  • 2
  • 7
  • 18
6
votes
1 answer

"Pre-Emptive" Basic Auth for Spring-WS Client

I'm trying to use build a simple web service client using Spring-WS and am hitting a wall. The SOAP service I'm attempting to call uses HTTP Basic Authentication for security. Using the Spring-WS tutorial example, I have configured…
CWG
  • 63
  • 1
  • 3
6
votes
2 answers

Spring Web Service Client Tutorial or Example Required

I need to jump into the Spring Web Service Project, in that I required to implement the Spring Web Service's Client Only.. So, I have already gone through with Spring's Client Reference Document. So, I got the idea of required classes for the…
Nirmal
  • 4,789
  • 13
  • 72
  • 114
6
votes
1 answer

Cannot locate BeanDefinitionParser for element for Spring web services

I am brand new to Spring web services and I keep getting this error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [annotation-driven] Offending…
lancex
  • 565
  • 4
  • 10
  • 19
6
votes
4 answers

Can't get Spring SOAP Client to work: content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'

Hi, I am trying to make a simple soap client work using Spring-ws. The googling I've done on this error says I'm using Soap 1.1 and need to specify Soap 1.2. I've tried to do that. Am I doing it correctly below? If this is not the problem does…
Steve L
  • 783
  • 3
  • 8
  • 15
5
votes
2 answers

Java Spring Web Service Client Fault Handling

I have written a web service client (using Java Spring and JAXB Marshaller) that works with the UPS web service. When I send a valid request everything works well. When I send an invalid request (weight > 150 lbs) then the UPS web service responds…
user544192
  • 695
  • 2
  • 10
  • 23
5
votes
1 answer

How do I add an attachment to a response payload in Spring-WS?

I'm building a Web Services server that's designed to share content. I'd like to serve the content through a SOAP response containing an attachment. Right now, I'm using Spring WS to handle requests and serve responses. My service resembles…
Mark Elliot
  • 75,278
  • 22
  • 140
  • 160
5
votes
4 answers

payload source of response with spring ws MockWebServiceClient

I'm using spring-ws 2.0.2 and spring-ws-test to run integration tests of my SOAP server. I'm using an approach exactly like that from…
jnichols959
  • 402
  • 4
  • 12