spring-ws

Spring: Response time

坚强是说给别人听的谎言 提交于 2019-12-23 04:58:06
问题 I have a SOAP webservice(spring ws)and need to save the response time of every request that I receive. I could create a servlet filter that measures time difference between HTTP Request and HTTP Response. But, I need to log the response time together with some values that I read from soap request envelope, and since at that time request is raw and needs to be unmarshalled, that's an expensive and redundant operation to unmarshall for every request. So is there a way to calculate it using

HTTP/XML Binding with Spring Web services

北城以北 提交于 2019-12-23 04:36:51
问题 I am working on web services POC. I need to develop a Spring-based web services, that use XML/HTTP i.e. HTTP binding (NOT SOAP/HTTP) so that I can invoke a web-service with URL parameters like the one example described in the WSDL specification especially a GET with query parameters. I am unable to map the URL's query-parameter to the end-point's (@EndPoint) method parameter. Is it possible to develop such a web-service (XML/HTTP bound) with spring-ws? Is it possible to invoke such a service

Quickest way to access a webservice with WSDL in Java

强颜欢笑 提交于 2019-12-22 08:17:59
问题 I need to access a webservice from Java. The service has a WSDL. Now how do I get to calling its operations? I've already used wsimport on it, but that only generates XML objects for the operations/responses, nothing to actually call them. I've looked at Spring-WS but it doesn't look like it's completely what I want (even though it might be part of the solution). The word "wsdl" doesn't appear in that page at all. 回答1: wsimport does not only generate the Objects needed for communication with

Spring WebServiceTemplate SOAPAction missing in HTTP Header

帅比萌擦擦* 提交于 2019-12-22 06:36:17
问题 I am having difficulty in calling a SOAP 1.2 WebService via Spring-ws WebServiceTemplate. The request being made is missing SOAPAction in Http Header and the server throws an error with "Unable to handle request without a valid action parameter. Please supply a valid soap action." I was able to figure out SOAP Action was missing by monitoring through wireshark. I am also not behind any proxy. I have made sure that the SOAP XML I am trying to send is valid by running the request through TCP

Spring ws: No adapter for endpoint

别来无恙 提交于 2019-12-22 04:28:42
问题 I am trying to create a sample project from this tutorial, and running the server side project on tomcat-6.0.14, but when I am trying to call the webservice using SoapUI with below xml: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="http://mycompany.com/hr/schemas"> <soapenv:Header/> <soapenv:Body> <sch:HolidayRequest> <!--You may enter the following 2 items in any order--> <sch:Holiday> <sch:StartDate>2006-07-03</sch:StartDate> <sch:EndDate>2006-07-03<

Upgraded from Spring 4.1.6 to 4.2.4 and suddenly getting TransactionRequiredException

时光总嘲笑我的痴心妄想 提交于 2019-12-21 20:53:03
问题 I have upgraded to latest Spring version from 4.1.6.Release to 4.2.4.Release and suddenly all what has functioned smoothly before, now throws the following exception. javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:277) ~[na:4.2.4.RELEASE] at com.sun

How to configure Spring-WS to use JAXB Marshaller?

*爱你&永不变心* 提交于 2019-12-21 04:33:07
问题 Thankyou for help on this so far, i am updating question as i did not show all i needed to, with changes recomended shown. the soap output is still not what i wanted. servlet.xml <?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:p="http://www.springframework.org/schema/p" xmlns:sws="http://www.springframework.org/schema/web

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

巧了我就是萌 提交于 2019-12-21 03:34:12
问题 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 and the server response is: "exception": "java.lang.NoClassDefFoundError", "message": "javax/xml/soap/SOAPException", That's the response I get in Postman. Any ideas where I can look for the problem. 回答1: JavaSE 8 includes package java.xml.soap .

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

坚强是说给别人听的谎言 提交于 2019-12-20 23:29:20
问题 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 requires to be configured in two way SSL connection for sending soap requests to the Server.How can I have two way SSL connection in my Spring MVC web service application in order to send my soap messages to the sever over SSL?. 回答1: I can guide you

Decrypting Message with a Spring Web Service Client

核能气质少年 提交于 2019-12-20 19:55:40
问题 350 Bounty and waffles to the person who can help me! I have been struggling with Spring Web Service encryption for days and I can't figure out how to get Spring's encryption on the message body to work. Whenever I have the server encrypt the resulting message the client doesn't seem to be decrypting it before it attempts to validate it against the Schema (XSD). Here is the server side configuration The server's xwss security configuration The client's Spring configuration Client's xwss