spring-ws

JAX-WS return empty lists

不想你离开。 提交于 2019-12-02 02:59:38
问题 I'm new in web services. I have faced some problem. At the server side i'm using spring-ws. At the client side i'm using jax-ws. With wsimport tool i have generated java classes according to my wsdl. Everything works fine, but for some reason jax-ws does not parse arrays and list correctly, all lists are empty I'm absolutely sure, that response is form correctly, tested it with soapui, also i'm using logging interceptor to log outcomming responses. Below is the snippets of response response

injection of property in xml fails (spring-ws config)

淺唱寂寞╮ 提交于 2019-12-02 01:41:12
问题 i'm using Spring-WS and have the following spring-ws-servlet.xml file. The injection of defaultURI and marshaller doesn't work because when i get to the method in the client of the service these properties are null. What happens is that the setters are being called with correct values, but in the method of the client getSum() these values are null. What could be wrong? <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3

How to consume third party WSDL services in Spring MVC

空扰寡人 提交于 2019-12-02 00:38:10
I wrote some services (used by an Android app) which takes a request and sends th response in json. Now I have a scenario where I have to consume a third party web service, through a provided WSDL file. I don't know how to do this, can anyone help? This is my dispatcher-servlet.xml: <?xml version="1.0" encoding="UTF-8"?> <beans "> <context:property-placeholder location="classpath:jdbc.properties" /> <context:component-scan base-package="com.srihari" /> <tx:annotation-driven transaction-manager="hibernateTransactionManager" /> <mvc:annotation-driven /> <bean id="jspViewResolver" class="org

Spring + SOAPExceptionImpl: Error during saving a multipart message

杀马特。学长 韩版系。学妹 提交于 2019-12-01 23:54:55
I have a spring web application with jsp pages that calls different web services and displays the results in a jsp page. The spring web application has username/login spring security attached to it. I am adding a call to a web service that handles security. For the WebServiceGateway, I added a security interceptor. (See below) <bean id="securityInterceptor" class="org.springframework.ws.soap.security.wss4j.Wss4jSecurityInterceptor"> <property name="securementActions" value="UsernameToken Timestamp" /> <property name="securementUsername" value="Bert" /> <property name="securementPassword" value

injection of property in xml fails (spring-ws config)

一笑奈何 提交于 2019-12-01 22:45:02
i'm using Spring-WS and have the following spring-ws-servlet.xml file. The injection of defaultURI and marshaller doesn't work because when i get to the method in the client of the service these properties are null. What happens is that the setters are being called with correct values, but in the method of the client getSum() these values are null. What could be wrong? <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xmlns:sws=

Spring WS web service. Adding an attachment to the response using SAAJ - No adapter for endpoint

泄露秘密 提交于 2019-12-01 21:07:28
I am really struggling getting Spring-WS to return a response with attachments. I have managed to get an MTOM version to work but this has some pre-requisites on the client as i believe that the client has to be MTOM enabled as well (please correct me if this is not correct). What i am trying to do now is to use the standard SOAP with attachment implementation using SAAJ and Spring-WS. To do this i implemented an endpoint that just attaches an image from the local filesystem to the response. @Endpoint public class TestEndPoint { private SaajSoapMessageFactory saajMessageFactory; @PayloadRoot

Cannot locate BeanDefinitionParser for element for Spring web services

余生颓废 提交于 2019-12-01 17:54:16
问题 I am brand new to Spring web services and I keep getting this error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [annotation-driven] Offending resource: ServletContext resource [/WEB-INF/spring-ws-servlet.xml] After some digging around, it looks like I most likely have a version mismatch between my schemas and jars but I do not see where (I'm shooting for v3.1). Here is every Spring jar in my

Cannot locate BeanDefinitionParser for element for Spring web services

☆樱花仙子☆ 提交于 2019-12-01 17:15:48
I am brand new to Spring web services and I keep getting this error: org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Cannot locate BeanDefinitionParser for element [annotation-driven] Offending resource: ServletContext resource [/WEB-INF/spring-ws-servlet.xml] After some digging around, it looks like I most likely have a version mismatch between my schemas and jars but I do not see where (I'm shooting for v3.1). Here is every Spring jar in my library: M2_REPO\org\springframework\spring-aop\3.1.1.RELEASE\spring-aop-3.1.1.RELEASE.jar M2_REPO\org

Spring WS client add SoapHeader

孤者浪人 提交于 2019-12-01 04:26:26
问题 I'm trying to send SOAP request with soap header looks like this: <SOAP-ENV:Header> <Security xmlns="http://www.xxx.org/xxx/2003/05"> <UsernameToken><Username>yyyy</Username><Password>xxx</Password> </UsernameToken></Security></SOAP-ENV:Header> In order to do it I'm adding header element using SoapActionCallback SoapActionCallback actionCallBack = new SoapActionCallback("https://aaa.com/bbb.asmx") { public void doWithMessage(WebServiceMessage msg) { SoapMessage smsg = (SoapMessage) msg; smsg

Can Spring-WS 1.5 be used with Spring 3?

瘦欲@ 提交于 2019-12-01 03:45:11
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 find any official word on this. Officially, no, they're not compatible. Like you said, there are package conflicts between the two - org.springframework.oxm in particular. This package was brought into Spring 3 from Spring-WS, and the two will clash. Work was supposed to be completed on Spring-WS 2.0 immediately after Spring 3.0 was released, but