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

Spring Web Services - Exception Skipping ExceptionResolver

I have a SOAP service, the request and responses work as expected with good input, if I specify bad input for an XML element in request body: ... asdf ... my exception resolver is invoked, this resolver is…
walnutmon
  • 5,873
  • 7
  • 42
  • 57
8
votes
0 answers

Change Spring WS Fault status code from 500 to 400

I have built Spring WS application (based on Spring WS 2.2.3) that exposes a small web service with couple of Operations. Each Operation receives input parameters to search a backend database and return response. Some of the parameters are mandatory…
Motokazi
  • 240
  • 3
  • 11
8
votes
2 answers

Can Spring-WS 1.5 be used with Spring 3?

Spring-ws 1.5.9 depends on Spring 2.5 (based on the pom). Can it be used with Spring 3 without running into any classloading issues. I know that some of the packages match between the two, can I just not include those Spring 3 jars? I cant seem to…
smp7d
  • 4,947
  • 2
  • 26
  • 48
8
votes
2 answers

Example on Web Service Consumption using Spring if provided a WSDL

Hi Im a newbie to Spring WebServices. I would like to go through a standard example wherein the WSDL is provided as input from Provider. Now how will the client code for this WSDL looks like. Do we need to generate a stub code at client side??
Hari Charan
  • 81
  • 1
  • 1
  • 2
8
votes
2 answers

Sending XmlData in soap request using spring ws

I have requirement to send XmlData in CDATA to soap request which returns an attachment. Using org.springframework.oxm.jaxb.Jaxb2Marshaller as marshaller and unmarshaller. Test]]> this is something I want to send in the soap…
user1609085
  • 855
  • 3
  • 17
  • 33
8
votes
2 answers

How to configure a Spring REST Service to handle multiple versions?

Almost all APIs are dealing with different release versions. Often you see this kind of versioning: http://api.com/v1/questions http://api.com/v2/questions .. But I haven't found a source discribing how to organize them in a Spring stack. I guess…
d0x
  • 11,040
  • 17
  • 69
  • 104
8
votes
4 answers

Howto: Configure Spring-WS to publish WSDL files with a '?WSDL' style URL?

I am trying to configure web service proxying using Mule ESB. I am attempting to do this using Mule's WSProxyService, but after stepping through the corresponding code (with the debugger), it is clear that this class replaces endpoint addresses. The…
Darren Bishop
  • 2,379
  • 23
  • 20
8
votes
2 answers

Mockito pattern for a Spring web service call

My class under test has this method public SomeWebServiceResponse callDownstream(SomeWebServiceRequest request) { return (SomeWebServiceResponse ) super.callService(request); } the super method is just a call to Spring WS to make the call - in…
shinynewbike
  • 2,334
  • 5
  • 28
  • 42
7
votes
2 answers

What is proper way to add encryption/decryption in spring-ws (wss4j)?

I have deployed 2 web apps, one representing web service and other representing ws client. When using SIGNING and TIMESTAMP-ing, everything works fine, client stamps message(but i think that he doesn't override the default 300s ttl), signs the…
mare
  • 71
  • 1
  • 3
7
votes
2 answers

Web services vs Spring remoting

I quite didnt get the difference between a regular web service implemented either through spring or axis versus Remoting. If my question is not at all related, I am just confused between spring web services vs spring remoting. When to go for…
srisris
  • 569
  • 2
  • 9
  • 28
7
votes
0 answers

How to marshall a list of parts in a SOAP body using Spring-ws

I have to write a client for a SOAP webservice in Java. Initially I used wsimport on the wsdl to generate proxy classes and all was well. However if there are changes in the wsdl like additions then my proxy classes crashed. So I tried switching to…
real_paul
  • 574
  • 2
  • 22
7
votes
4 answers

Spring WS DefaultWsdl11Definition Error

I am using Spring WS and declaring a DefaultWsdl11Definition bean to generate the WSDL Files on the fly. However , When i start the webserver (tomcat) I get a bean instantiaion error due to : Caused by:…
Wael Awada
  • 1,506
  • 3
  • 18
  • 31
7
votes
4 answers

How to configure two way SSL connection in Spring WS without using Spring boot and using separate Apache tomcat server?

I need to send a soap request messages in a two way SSL connection security mechanism to a server and also process the Soap response from the server..I am using Spring MVC along with Spring ws which is configured entirely using annotations and…
user5950614
7
votes
3 answers

thread safety when using spring WebServiceTemplate and Jaxb2Marshaller

I am using spring WebServiceTemplate as a web service client programmatically i.e. without instantiating a spring container. I am using Jaxb2Marshaller for marshaling/unmarshaling. In my application, I create a single instance of the…
neesh
  • 5,167
  • 6
  • 29
  • 32
7
votes
3 answers

How to use spring-ws client to call the same webservice using different keystore

I have some application that need to run in the same Application server. Each application need to authenticate through the same web service using a certificate specific for that application. Obviously I can put all the certificates inside the same…
ElPysCampeador
  • 399
  • 1
  • 4
  • 14