spring-ws

NoClassDefFound after adding spring-ws dependency

孤街浪徒 提交于 2020-01-16 00:46:01
问题 I have a web app that I have to extend with a SOAP client. Since I can't influence the design of the contract (WSDL), I thought about using spring-ws. But as soon as I add the dependency: <dependency> <groupId>org.springframework.ws</groupId> <artifactId>spring-ws-core</artifactId> <version>2.1.4.RELEASE</version> </dependency> I'm getting the following Exception when starting up the application: java.lang.NoClassDefFoundError: Could not initialize class org.springframework.jdbc.core

Call POX web service from Spring Integration

拟墨画扇 提交于 2020-01-15 09:19:47
问题 I'm using Spring Integration in a project that integrates (successfully) various ReST/JSON and SOAP endpoints. Now I need to call a BusinessWorks instance that is configured to accept Plain-Old-Xml-over-HTTP. From the "Spring Integration in Action book", I got a hint that I should use int-ws:outbound-gateway for this. This configuration generates the correct request, but in SOAP: <int-ws:outbound-gateway uri="..." request-channel="request" reply-channel="reply" marshaller="marshaller"

Call POX web service from Spring Integration

放肆的年华 提交于 2020-01-15 09:19:09
问题 I'm using Spring Integration in a project that integrates (successfully) various ReST/JSON and SOAP endpoints. Now I need to call a BusinessWorks instance that is configured to accept Plain-Old-Xml-over-HTTP. From the "Spring Integration in Action book", I got a hint that I should use int-ws:outbound-gateway for this. This configuration generates the correct request, but in SOAP: <int-ws:outbound-gateway uri="..." request-channel="request" reply-channel="reply" marshaller="marshaller"

UnmarshallingFailureException, unexpected element (uri:“http://schemas.xmlsoap.org/soap/envelope/”, local:“Fault”)

我的未来我决定 提交于 2020-01-14 06:04:13
问题 i am trying write a webservice-client for my local webservice. I am debugging (at server) everything is fine and response message is true (my object). And also i try using SOAP UI there was no problem. Here is my appcontext.xml <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate" p:marshaller-ref="jaxbMarshaller" p:checkConnectionForFault="false" p:faultMessageResolver-ref="faultMessageResolver" p:unmarshaller-ref="jaxbMarshaller" p:defaultUri="http:/

Received fatal alert: unknown_ca while mutual authentication

依然范特西╮ 提交于 2020-01-13 06:42:26
问题 I'm working on a web service client which need to communicate with a server who has mutual authentication enabled. I've done the following steps. Added the server certificate(self signed) to a trust store and set it to the HttpsURLConnection using the SSLSocketFactory . Gave the client certificate(CA signed) to the server admin to add it to their trusted store. Created a keystore by importing the client certificate and created a keymanager to `HttpsURLConnection'. When I try to run this

Received fatal alert: unknown_ca while mutual authentication

吃可爱长大的小学妹 提交于 2020-01-13 06:42:06
问题 I'm working on a web service client which need to communicate with a server who has mutual authentication enabled. I've done the following steps. Added the server certificate(self signed) to a trust store and set it to the HttpsURLConnection using the SSLSocketFactory . Gave the client certificate(CA signed) to the server admin to add it to their trusted store. Created a keystore by importing the client certificate and created a keymanager to `HttpsURLConnection'. When I try to run this

Spring WS unavailable upon requesting connection

不问归期 提交于 2020-01-07 02:22:11
问题 I've got a Spring WS which I'm able to call successfully for 2 requests. Here is the output: 2011-07-20 18:25:33,743 DEBUG [org.springframework.ws.client.core.WebServiceTemplate] - Opening [org.springframework.ws.transport.http.HttpUrlConnection@1696452] to [http://mymachine:8080/test-service/HistoryService] 2011-07-20 18:25:33,868 DEBUG [org.springframework.ws.soap.saaj.support.SaajUtils] - SOAPElement [com.sun.xml.internal.messaging.saaj.soap.ver1_1.Envelope1_1Impl] implements SAAJ 1.3 2011

Getting Request parameters from Spring WS Interceptor

帅比萌擦擦* 提交于 2020-01-05 08:39:20
问题 I am using Jaxb 2 with a Spring WS, and I have an interceptor which is directed to a particular payload and it works fine. Here my requirement is to read the request parameters from the handleRequest method of my interceptor. I know this should be fairly straight forward. However could not figure out a way to read the request parameters. At the moment my handleRequest method looks as below. @Override public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception

Getting Request parameters from Spring WS Interceptor

偶尔善良 提交于 2020-01-05 08:39:02
问题 I am using Jaxb 2 with a Spring WS, and I have an interceptor which is directed to a particular payload and it works fine. Here my requirement is to read the request parameters from the handleRequest method of my interceptor. I know this should be fairly straight forward. However could not figure out a way to read the request parameters. At the moment my handleRequest method looks as below. @Override public boolean handleRequest(MessageContext messageContext, Object endpoint) throws Exception

How to implement backward compatible soap webservice (java based)?

本小妞迷上赌 提交于 2020-01-04 18:18:51
问题 One of our product publishes a webservice using contract-last approach. This has becoming a real problem as all of our clients (ws clients) have to rebuild their client apps as soon as we release a new version of our product. This is due to all namespace changes that comes as a cost with auto-generated wsdls. We use Axis1 for javatowsdl. I've been seeking for a good methodology/ tool to develop backward compatible webservice for this. i.e. version 9.3 clients can still hit the 10.0 service,