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
9
votes
1 answer

How to remove empty header from SOAP message?

I am using Spring-WS for consuming Webservice which compains if SOAP envelop has empty header element. I figured out that default SOAPMessage implementation adds one. How can I remove it? Thanks in advance
zegoline
  • 574
  • 2
  • 8
  • 21
9
votes
0 answers

How to change the Soap header message

I have soap request to be sent to the service. Before sending i want to edit the Soap header this is one of…
bpetlur
  • 333
  • 5
  • 16
9
votes
1 answer

Spring Boot SOAP webservice with MVC

I would like to combine two Spring (spring-boot) applications from Spring guides: https://spring.io/guides/gs/serving-web-content/ https://spring.io/guides/gs/producing-web-service/ Unfortunately, these examples do not work together. There is a…
jareks
  • 643
  • 1
  • 10
  • 14
9
votes
1 answer

Spring-ws @Endpoint/@PayloadRoot based configuration giving 404

Really stumped on this one - trying to utilize Spring-ws's @Endpoint and @PayloadRoot to automagically stand up some WSDL endpoints, but I keep getting a 404 (deploying into Tomcat 7.0.54). I've scoured this thing looking for naming inconsistencies…
Nick
  • 449
  • 1
  • 6
  • 17
9
votes
3 answers

Spring ws: No adapter for endpoint

I am trying to create a sample project from this tutorial, and running the server side project on tomcat-6.0.14, but when I am trying to call the webservice using SoapUI with below xml:
Garnett Xu
  • 93
  • 1
  • 1
  • 4
9
votes
2 answers

How to have spring security context in child context

I'm trying to have spring security context in child context, so I could have url security on the servlet context file. I have: springSecurityFilterChain
eis
  • 51,991
  • 13
  • 150
  • 199
9
votes
1 answer

How can i have two separate web services with identical name space and local name requests be routed to different end points?

I'm attempting to create 2 separate web services, both within one spring deployment, both with the wsdl's being generated from the same xsd schemas, yet have them be routed to two separate end points so i can handle the requests differently in the…
Damian
  • 103
  • 1
  • 5
9
votes
2 answers

Redirect/Forward SOAP Web Service Requests to another Web Service

I have a use case that required all calls to NewWebService are routed to OldWebService, if the SOAP request does not validate against NewWebService's XSD and WSDL. NewWebService is located on ServerA and OldWebService is on ServerB. Abstractly, I…
Jared
  • 763
  • 2
  • 7
  • 14
8
votes
3 answers

Publishing Static WSDL and related XSD schemas using Spring WS

I have one module where I have my XSD schemas, where one schema can reference an other using relative path within schema location: Here I'm also using xjc to…
csviri
  • 1,159
  • 3
  • 16
  • 31
8
votes
3 answers

Spring Web-Service unmarshalling not working

I have configured my WebService like this: applicationContext:
CSan
  • 954
  • 1
  • 10
  • 25
8
votes
3 answers

JAXB + Spring WS : "No adapter for endpoint" while using JAXBElement

I have a web service that I am trying to implement using Spring and Jaxb. I already have a handful of working services using both of these - but this particular service is giving me a hard time due to the format of the response. In my XSD, the…
Dave
  • 888
  • 2
  • 8
  • 9
8
votes
2 answers

Correctly testing a Spring service

The following test fails with a NullPointerException on the line usersRepo.save(user);. I believe it's because when the test goes into the performProvision() function the usersRepo object is null. However, when the web service is actually running…
Darrel Holt
  • 870
  • 1
  • 15
  • 39
8
votes
1 answer

How to transform exceptions into return codes using Spring-WS?

I'm currently facing a problem with error codes and messages using Spring WS. We are using Spring WS 2.0 with a JAXB2 binding and the @Endpoint and @PayloadRoot annotations for convenience. Our endpoint looks like this: @Endpoint public class…
Axel Fontaine
  • 34,542
  • 16
  • 106
  • 137
8
votes
2 answers

Using spring-ws with already existing WSDL

I am new to spring-ws. what ever tutorial i see starts with xsd and at the end generates a wsdl. What is the approach when we have already an existing wsdl. Also i was having a doubt on contract first approach which is already discussed (though am…
zee
  • 109
  • 1
  • 1
  • 10
8
votes
2 answers

Parsing a XML not keeping duplicated namespaces in the parent node and child node

Before I start: I know that the child node inherits the namespace from the parent node and that's why my problem occurs. Unfortunately, the webservice I am sending my XML doesn't accept the child node without the namespace and, as it is a government…
Diego Urenia
  • 1,620
  • 2
  • 21
  • 28