spring-ws

ServletRegistrationBean doesn't works for the multiple URL mapping paths

你说的曾经没有我的故事 提交于 2020-06-23 03:45:41
问题 I was developing code looking at https://howtodoinjava.com/spring-boot/spring-boot-soap-webservice-example/, In the below bean I want to allow request to be executed for /* and /service/* , so I changed to @Bean public ServletRegistrationBean messageDispatcherServlet(ApplicationContext applicationContext){ MessageDispatcherServlet servlet = new MessageDispatcherServlet(); servlet.setApplicationContext(applicationContext); servlet.setTransformWsdlLocations(true); return new

xsd:include exception in soapUI:org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null

為{幸葍}努か 提交于 2020-06-16 07:51:25
问题 I have a problem while creating new project in soapUI and importing wsdl file from URL.It gives me the below exception Error loading [http://localhost:8080/WS/PersonalDetails.xsd]: org.apache.xmlbeans.XmlException: org.apache.xmlbeans.XmlException: error: Unexpected end of file after null My xsd include <xsd:include schemaLocation="PersonalDetails.xsd" /> <xsd:include schemaLocation="PersonalRequest.xsd" /> Actual Location of the xsd WS/src/main/webapp/schemas/PersonalDetails.xsd WS/src/main

Invalid wsdl generated by spring-ws when the request element doesn't end with 'Request'

馋奶兔 提交于 2020-05-11 04:59:36
问题 I must prepare a webservice to accept anan already defined wsdl structure. I followed the tutorial found here, with source code for the test project downloadable here. For xsd like this: <xs:element name="getCountryRequest"> <xs:complexType> <xs:sequence> <xs:element name="name" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> Wsdl operation for request returned by application is OK, looks like this: <wsdl:binding name="CountriesPortSoap11" type="tns:CountriesPort"> <soap

Could not handle mustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security. Returning fault

戏子无情 提交于 2020-03-09 04:45:08
问题 I went through links like: SOAPFaultException "MustUnderstand headers (oasis-200401-wss-wssecurity-secext-1.0.xsd) are not understood", but still struggling. I'm using Spring Boot v2.2.2..RELEASE and SOAP project. I am loading two different WSDL file into my project. One URL Generates to http://localhost:8080/employee/employee-soap which works fine. But http://localhost:8080/student/student-soap this gives below error. 2020-02-17 15:31:00.241 WARN 20236 --- [nio-8080-exec-5] o.s.w.soap.server

Could not handle mustUnderstand headers: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security. Returning fault

醉酒当歌 提交于 2020-03-09 04:44:56
问题 I went through links like: SOAPFaultException "MustUnderstand headers (oasis-200401-wss-wssecurity-secext-1.0.xsd) are not understood", but still struggling. I'm using Spring Boot v2.2.2..RELEASE and SOAP project. I am loading two different WSDL file into my project. One URL Generates to http://localhost:8080/employee/employee-soap which works fine. But http://localhost:8080/student/student-soap this gives below error. 2020-02-17 15:31:00.241 WARN 20236 --- [nio-8080-exec-5] o.s.w.soap.server

JAXB2-maven only builds in target

安稳与你 提交于 2020-02-24 04:29:55
问题 I'm on my first Java-Spring project. I need to communicate with a couple of webservices. I have some WSDL's provided, so i'm using Jax2B to autogenerate classes. <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.9.0</version> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <schemaLanguage>WSDL</schemaLanguage> <generatePackage>hello.wsdl</generatePackage> <forceRegenerate>true<

JAXB2-maven only builds in target

我是研究僧i 提交于 2020-02-24 04:25:07
问题 I'm on my first Java-Spring project. I need to communicate with a couple of webservices. I have some WSDL's provided, so i'm using Jax2B to autogenerate classes. <plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> <version>0.9.0</version> <executions> <execution> <goals> <goal>generate</goal> </goals> </execution> </executions> <configuration> <schemaLanguage>WSDL</schemaLanguage> <generatePackage>hello.wsdl</generatePackage> <forceRegenerate>true<

WebServiceTransportException: Unauthorized [401] in Spring-WS

蹲街弑〆低调 提交于 2020-02-03 09:43:07
问题 We are struggling to configure our web app to be able to connect with web services via Spring WS. We have tried to use the example from the documentation of client-side Spring-WS, but we end up with a WebServiceTransportException. The XML config looks like this: <bean id="webServiceTemplate" class="org.springframework.ws.client.core.WebServiceTemplate"> <constructor-arg ref="messageFactory"/> <property name="messageSender"> <bean class="org.springframework.ws.transport.http

Spring WS client set cookie for authentication

帅比萌擦擦* 提交于 2020-01-25 18:40:10
问题 In order to consume a RPC web service, first I have to call a web method 'Authentication' and then I am supposed to be able to call other web methods. I have tried to implement a spring web client to consume this service but something is going terribly wrong. This service was originally designed for php users and the sample client code they provided is as following: $soap = new SoapClient('http://www.2972.ir/wsdl?XML'); if ($soap->Authentication('user', '123456')) { echo $soap->getCredit(); }

Spring ws timeout on server side

。_饼干妹妹 提交于 2020-01-24 17:42:20
问题 I have some web services exposed using spring web services. I would like to set a maximun timeout on server side, I mean, when a client invokes my web service It could not last more than a fixed time. Is it possible? I have found lot of information about client timeouts, but not server timeout. Thanks in advanced. 回答1: This is set at the level of the server itself and not the application, so it's application server dependent. The reason for this is that it's the server code that opens the