FAQ Database Discussion Community


Spring Boot- Producing a SOAP web service that expects application/soap+xml content type

web-services,soap,spring-boot,spring-ws,soap1.2
I followed a tutorial Produce SOAP WS. I changed the DefaultWsdl11Definition under WebServiceConfig to generate soap12 binding for the service by adding: wsdl11Definition.setCreateSoap12Binding(true); In my generated wsdl file, I can see that porting for Soap12 is generated. However when I send a message with custom header: Content-Type=application/soap+xml, I get exception:...

Spring Web Service Message Dispatcher overrriding

spring-ws
I am currently working on creating a web service using Spring -WS. I want to make the request reach my own Message Dispatcher Class. So I made the necessary configuration changes to web.xml and also my sping-congfig.xml file. I am seeing an error when spring loads beans for my Message...

Testing Spring JAX-WS Web Services

spring,unit-testing,spring-ws
I have a Web Service (@WebService) exported with SimpleJaxWsServiceExporter. I want to create integration tests for it. How can I do this? Is possible to use the MockWebServiceClient class from the spring-ws-test project?...

Spring boot using Spring Security authentication failure when using SpringPlainTextPasswordValidationCallbackHandler in an XwsSecurityInterceptor

spring-security,spring-boot,spring-ws,ws-security
I have set a up a spring boot (1.2.3) application with spring security and spring-ws. I have configured spring security to use .ldapAuthentication() for authentication in my WebSecurityConfigurerAdapter. I am trying to get the same spring security authenticationManager to authenticate my spring ws SOAP web services using ws-security usernametokens (plain...

Spring web Services client and server - No Endpoint mapping found

java,xml,spring,web-services,spring-ws
I am trying to hook together Spring WS based server and Spring WS based client. Using org.codehaus.mojo:jaxb2-maven-plugin on server and org.jvnet.jaxb2.maven2:maven-jaxb2-plugin on client. Error: WARNING: No endpoint mapping found for [SaajSoapMessage {http://localhost:10301/0301-ws-xmlconfig-service}UserRequest] This is my Spring WS server configuration: userDetails.xsd: <?xml version="1.0" encoding="UTF-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified"...

Spring: Response time

java,spring,spring-ws
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...

Extra SOAP information in request

java,xml,soap,jaxb,spring-ws
I'm new to SOAP and maybe my question is a bit simple or weird. In my app (spring-ws, JAXB) I have integration with third-party service for client background check using hr-xml standard. Full request looks like: <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope"> <SOAP-ENV:Body> <OrderBackgroundCheck> <OrderBackgroundCheckRequest> <Envelope version="01.00"> <Sender> <Id>DDF</Id> <Credential>USERNAME</Credential>...

Spring: Logging outgoing HTTP requests

java,spring,spring-ws
I am trying to log all the outgoing Http requests in my spring based web application. Is there is interceptor for this purpose? I want to log all outgoing the contents and headers before it leaves the application. I am using spring-ws to send SOAP requests. So basically, I want...

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

java,spring,ssl,https,spring-ws
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 keystore, but how can I specify which one I have...

org.springeframework.ws.soap.client.SoapFaultClientException in jBoss 7.1.1

spring,web-services,jboss,client,spring-ws
I'm creating a Spring webapplication (actually a portlet for Liferay), where I have to communicate with a webservice. Our webapplication runs on JBoss 7.1.1. I've done this before without much trouble, the only difference was that in that time the application ran on a Tomcat server. I've tested the webservice...

understand spring-ws, integration with spring-mvc and automatic generation of wsdl

java,spring,web-services,wsdl,spring-ws
i want learn spring-ws with automatic generation of wsdl files, i know that is a lot of tutorials, i tried them, my favorite example is : github projet It works well, but i tried to ajust that solution for my needs, and it doesnt work, i dont know why, and...