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

Spring-WS client not setting SOAPAction header

I'm sending a SOAP request and the server is complaining that the SOAPAction header is empty. I think I'm setting it right, but obviously I'm not. Wireshark shows it's not set. @Test public void testLogin() throws Exception { StringBuffer…
Steve L
  • 783
  • 3
  • 8
  • 15
20
votes
2 answers

Can I use Spring MVC and Spring WS in one single application?

Basically there is a back-end application that is exposing both SOAP as well as RESTful services. I have decided to use Spring WS 1.5.8 for SOAP services, and Spring MVC 3.0 for RESTful services as this is a new feature. upon reading a bit about…
Rohan Patil
  • 277
  • 1
  • 4
  • 10
20
votes
1 answer

Spring REST WS : jersey vs resteasy vs restlet vs apache cxf vs Spring WS

I am planning to build a ResT full web service using spring 4 and java 7 for a complex highly performance oriented application. After researching i have found following options. Spring REST WS (using Jackson). Example Spring + Jersey.…
Om.
  • 2,532
  • 4
  • 22
  • 22
20
votes
4 answers

Producing SOAP webservices with spring-ws with Soap v1.2 instead of the default v1.1

I am currently working on Spring soap server project. I started off with the Getting Started guide from Spring here http://spring.io/guides/gs/producing-web-service/ to build a basic SOAP service. The default SOAP protocol is SOAP v1.1. Is there a…
Dexter
  • 1,621
  • 3
  • 18
  • 38
19
votes
3 answers

Consume webservice service in SPRING-WS using wsdl

I have WSDL with me .eg: /sample/hello?wsdl . I want to invoke the service the webservice by configuring in Spring-ws. I passed this wsdl as parameter to tags in springconfig.xml. Can anyone please tell me how to consume this webservice in…
pandeis
  • 367
  • 2
  • 5
  • 17
19
votes
1 answer

Advantages of WebServiceGatewaySupport vs WebServiceTemplate

I have to implement a webservice client using Spring WS. I've read the documentation at http://static.springsource.org/spring-ws/site/reference/html/client.html but it's not clear to me what are the advantages of extending WebServiceGatewaySupport…
Sorin
  • 1,965
  • 2
  • 12
  • 18
17
votes
6 answers

Invalid wsdl generated by spring-ws when the request element doesn't end with 'Request'

I must prepare a webservice to accept anan already defined wsdl structure. I followed the tutorial found here, with source code for the test project downloadable here. For xsd like this:
Dariusz
  • 21,561
  • 9
  • 74
  • 114
16
votes
3 answers

How to use direct streaming for SOAP with Spring-WS?

We want to enable direct streaming of our payload in webservice endpoints. We have to process a large amount of data and want to stream the data while processing. We use spring-ws-core, in version 2.0.0 and use the PayloadRootQNameEndpointMapping as…
Christopher Klewes
  • 11,181
  • 18
  • 74
  • 102
16
votes
4 answers

Add child elements to custom SOAP header in Spring-WS

I am calling a SOAP webservice with Spring-WS. The webservice in question requires me to pass some information in the SOAP header as shown here:
Mike Deck
  • 18,045
  • 16
  • 68
  • 92
16
votes
4 answers

No adapter for endpoint in Spring Web Service Response

I just cant figure out this error using Spring Web Services. I believe I did everything correctly. Soap Error Response
Mike Flynn
  • 22,342
  • 54
  • 182
  • 341
14
votes
3 answers

How to access HTTP headers in Spring-ws endpoint?

How can I access HTTP headers in Spring-ws endpoint? My code looks like this: public class MyEndpoint extends AbstractMarshallingPayloadEndpoint { protected Object invokeInternal(Object arg) throws Exception { MyReq request = (MyReq) arg; …
Juha Syrjälä
  • 33,425
  • 31
  • 131
  • 183
14
votes
1 answer

How to build SOAP client in Spring?

I am able to send requests to the web service using javax.xml.soap.*, I would like to covert the code to use webServiceTemplate. I am struggling with creating request and result objects. (sample Ive found is related to xml not SOAP) I am also…
Daniel Newtown
  • 2,873
  • 8
  • 30
  • 64
14
votes
4 answers

spring-ws: no endpoint mapping found

I made a simple web service but when I'am trying to test it on soapui its giving this error: WARN : [Oct-11 12:56:38,081] ws.server.EndpointNotFound - No endpoint mapping found for [SaajSoapMessage…
maria
  • 163
  • 1
  • 2
  • 9
14
votes
2 answers

How to unmarshal a SOAP Fault in a FaultMessageResolver?

I'm new to Spring-WS, and slowly getting my head wrapped around it. Right now, I'm writing a simple client to communicate with an existing WS. I'm using the WebServiceTemplate and the marshalSendAndReceive method. Everything works fine. However,…
Eric B.
  • 23,425
  • 50
  • 169
  • 316
13
votes
5 answers

WebServiceTemplate with Basic Auth using HttpComponentsMessageSender

I am trying to test a Spring Web Service which is currently secured with Basic Authentication underneath. For these tests, I have written a Web Service client using Spring's WebServiceTemplate class. My Web Service client calls to the Web Service…
1
2
3
84 85