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
81
votes
6 answers

Which framework is better CXF or Spring-WS?

I am in the process of researching/comparing CXF and Spring-WS for web services? I need to function both as a provider and a consumer of WS. In a nutshell, I have been told that Spring-WS is more configurable, but CXF is easier to get up and…
Kevin
  • 7,856
  • 11
  • 35
  • 40
70
votes
6 answers

JAXB :Need Namespace Prefix to all the elements

I am Using Spring WebServiceTemplate to make webservice call which uses JAXB to generate request XML. My requirement needs all the elements (including root) to have a namespace prefix (there is only a single namespace) in the SOAP request. Ex…
Sai Kumar
  • 2,231
  • 3
  • 17
  • 15
49
votes
8 answers

java.lang.NoClassDefFoundError : javax/xml/soap/SOAPException

I have created a Web Service using Spring. It works fine when running it on my embedded tomcat server. However when I package it as a JAR file and run it with java -jar command, I am receiving this exception. My service sends a simple soap request…
grangos
  • 501
  • 1
  • 4
  • 4
48
votes
9 answers

How to set timeout in Spring WebServiceTemplate

I am using org.springframework.ws.client.core.WebServiceTemplate for making Web Service calls. How can i configure timeout for the call.
Sai Kumar
  • 2,231
  • 3
  • 17
  • 15
48
votes
3 answers

Support for X509PKIPathv1 in xws-security for Spring-WS

I'm trying to send a request to an existing webservice. This webservice is not governed by me. The security policy of this webservice requires me to send my complete certificate chain in my SOAP request. My certificate chain contains 3 certificates.…
Bart Blommaerts
  • 821
  • 6
  • 15
40
votes
7 answers

Setting a custom HTTP header dynamically with Spring-WS client

How do you set a custom HTTP header (not SOAP header) dynamically on the client side when using Spring-WS?
user366735
  • 2,183
  • 3
  • 21
  • 20
35
votes
4 answers

Convert StreamResult to string or xml

Using spring ws to get the StreamResult as below StreamSource source = new StreamSource(new StringReader(MESSAGE)); StreamResult result = new StreamResult(System.out); webServiceTemplate.sendSourceAndReceiveToResult("http://someUri", …
user1609085
  • 855
  • 3
  • 17
  • 33
32
votes
12 answers

No adapter for endpoint; Is your endpoint annotated with @Endpoint, or does it implement a supported interface like MessageHandler or PayloadEndpoint?

I am struggling with an Spring-WS with JMS example. I set the Spring-WS and JMS wiring as per the Spring recommendations. But I kept getting following error. I dont know how to bypass this issue, any help will be highly…
user1988865
  • 321
  • 1
  • 3
  • 3
32
votes
7 answers

How to create spring-based executable jar with maven?

I have a Maven based Spring-WS client project that I want to package as a single jar. In eclipse, everything runs properly. When I try to package it as an executable jar, I get ClassNotFound exceptions since the Spring jars are not included in my…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
26
votes
1 answer

Difference between spring-boot-starter-web and spring-boot-starter-web-services and spring-boot-starter-jersey

What is the difference between: spring-boot-starter-web spring-boot-starter-web-services spring-boot-starter-jersey? The documentation says Starter for building RESTful web applications using JAX-RS and Jersey. An alternative to…
Gaurav Raj Behl
  • 263
  • 1
  • 3
  • 5
26
votes
6 answers

Add SoapHeader to org.springframework.ws.WebServiceMessage

How can I add an object into the soap header of a org.springframework.ws.WebServiceMessage This is the structure I'm looking to end up with: username
Mark Pope
  • 11,244
  • 10
  • 49
  • 59
25
votes
5 answers

Return Type for jdbcTemplate.queryForList(sql, object, classType)

I'm executing a named query using jdbcTemplate.queryForList in the following manner: List conversations = jdbcTemplate.queryForList( SELECT_ALL_CONVERSATIONS_SQL_FULL, new Object[] {userId, dateFrom,…
Global Dictator
  • 1,539
  • 9
  • 24
  • 37
23
votes
5 answers

How to use WSDL with spring-boot?

I have WSDL and schema files provided by client. I need to create Spring-boot SOAP web service with this WSDL file. I have google it and all the examples that I can find, they have auto-generate the wsdl with spring.How can I use my WSDL to generate…
user3496599
  • 1,207
  • 2
  • 12
  • 28
22
votes
1 answer

Corresponding SOAP UI vs Spring-ws

Soap UI has the following option "Use single certificate for signing" what is the corresponding spring-ws config?
user48545
  • 3,291
  • 9
  • 31
  • 42
21
votes
3 answers

How to change "SOAP-ENV" default prefix of Spring-WS

I've created a web service using Spring-WS. To maintain compatibility with the old system, I need to change namespace prefix from SOAP-ENV to soap. I know that SOAP-ENV and soap are just namespace prefixes. As long as they refer to the correct…
attomos
  • 1,112
  • 3
  • 16
  • 30
1
2 3
84 85