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
7
votes
3 answers

How to log SOAP messages on client side?

Good day. I'm learning how to write a connector to external SOAP RCP styled service. I'm using jaxws-maven-plugin plugin to generate Java classes from the WSDL file. And I'm using Spring to create the web service client bean: @Configuration public…
Vojtech
  • 2,533
  • 9
  • 34
  • 65
7
votes
1 answer

Customizing Java packages JAXB wsimport

I'm trying to generate a client with maven and jaxb from a wsdl file with 2 schemas inside and some elements with the same name from different schemas When I try to execute the compilation I'm getting the next error: Two declarations cause a…
maqjav
  • 2,310
  • 3
  • 23
  • 35
7
votes
1 answer

SOAP Body with Two Elements

I am trying to create a soap message with the following structure: I am using a WebServiceMessageCallback to get the above…
Esc Tab
  • 86
  • 5
7
votes
1 answer

Is it possible to create a WS-client from WSDL file using Spring-WS? (It seems not)

I'd like to know if it's possible to create Web Services client from a WSDL file using Spring Web Services. I mean from the very WSDL, I don't have any XSD for the time being. But I've read Josh Long's "Spring Recipes A Problem-Solution Approach",…
jbbarquero
  • 2,842
  • 2
  • 19
  • 17
7
votes
1 answer

How to configure Spring-WS to use JAXB Marshaller?

Thankyou for help on this so far, i am updating question as i did not show all i needed to, with changes recomended shown. the soap output is still not what i wanted. servlet.xml
Sean F
  • 2,352
  • 3
  • 28
  • 40
6
votes
4 answers

How to read SOAP Header information from request and add it to response in spring web services

I am working on spring web services. I need to add some custom elements in the request and response message.which should look like this: 123
Vishal Agrahari
  • 307
  • 2
  • 5
  • 13
6
votes
1 answer

How to set Jaxb2Marshaller list of XmlAdapters in Spring bean through XML?

I'm trying to define a Jaxb2Marshaller bean in Spring-WS to use a custom adapter that extends XmlAdapter. I have the following in an XML file:
holic87
  • 791
  • 2
  • 17
  • 29
6
votes
1 answer

JDK17 + Spring Boot Starter Web Services: Implementation of JAXB-API has not been found on module path or classpath

I have a simple spring boot app and I want to send request to a SOAP endpoint. Unfortunately every time I try to do this I receive: javax.xml.bind.JAXBException: Implementation of JAXB-API has not been found on module path or classpath. I'm really…
Clyde Barrow
  • 1,924
  • 8
  • 30
  • 60
6
votes
1 answer

@PayloadRoot vs @Action vs @SoapAction in Spring-WS

Could someone explain why I would use one of these endpoint annotations over the other in spring-ws? In particular, which one would be considered the most inclusive? Can I use all three? I've read the doc and I know that @Action uses ws-addressing…
AHungerArtist
  • 9,332
  • 17
  • 73
  • 109
6
votes
2 answers

Spring 3 (SWS2): difference between and

When trying a simple Web Service Hello World example with just one @Endpoint annotated class, the Endpoint is not registered when using the namespace. However, by adding the usual , everything works…
Ice09
  • 8,951
  • 4
  • 23
  • 25
6
votes
1 answer

Generating Spring WS Client from RPC/encoded WSDL with ease?

Greetings everyone, Prior to my specific question, I'd like to mention that I am not looking for a step by step solution but for a possible YES or NO whether or not I will be able to achieve my goal with what I'm planning. What I've got: A wsdl that…
Sniffer
  • 93
  • 1
  • 4
6
votes
1 answer

axis2 vs spring-ws vs jersey

My friend asked to explain me what's the difference between Spring, axis2 and Jersey. Here I listed down a few differences that I'm aware of. Please comment/respond if you know more differences Spring webservices: A java web application with a…
Srini Kandula
  • 981
  • 2
  • 18
  • 47
6
votes
3 answers

Spring boot 2.1.1 to 2.1.2: Error creating bean with name 'payloadRootAnnotationMethodEndpointMapping'

Migrating from spring boot 2.1.1 to 2.1.2 caused the following error: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'payloadRootAnnotationMethodEndpointMapping' defined in class path resource…
Thiago Sayão
  • 2,197
  • 3
  • 27
  • 41
6
votes
1 answer

Spring configure two @Endpoint, each with a unique wsdl file

I've been able to get one @Endpoint with a wsdl file working: @EnableWs @Configuration public class EventServerConfiguration extends WsConfigurerAdapter { @Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext…
andersfylling
  • 718
  • 10
  • 24
6
votes
4 answers

How Should I Unit Test WebServiceTemplate (SpringWS)

I'm trying to figure out the best way to write unit tests for Spring's WebService Template classes. What I'm trying to do is check to make sure that I wired these classes up correctly for each request/response type that my client is producing. I…
Karthik Ramachandran
  • 11,925
  • 10
  • 45
  • 53