spring-ws

Spring-WS generates WSDL without operations

天大地大妈咪最大 提交于 2019-12-10 12:45:39
问题 Spring-WS generates WSDL without operations in binding tag... Do you know why? There is my spring-ws-service.xml: <import resource="classpath*:application-context.xml" /> <!-- Register PayloadRootAnnotationMethodEndpointMapping --> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" /> <!-- Register Endpoint --> <bean id="tasktablerServiceEndpoint" class="tasktabler.mpk.service.TasktablerServiceEndpoint" /> <!-- Configure XML Marshaller -->

Spring SOAP webservice endpoint with Spring AOP

回眸只為那壹抹淺笑 提交于 2019-12-10 11:16:44
问题 I am developing a webservice using spring soap implementation and hence my service class is annotated with @Endpoint annotation. Now, I want to use SPRING AOP for application logging which I have already implemented. However, as I have noticed, until I execlude my service class from the pointcut expression, I get no endpoint mapping found exception when my webservice is invoked. When I exclude the service classes from AOP's scope, things work fine again. Any idea on this? UPDATE: My logger

javax.xml.bind.JAXBException: doesn't contain ObjectFactory.class o jaxb.index

强颜欢笑 提交于 2019-12-10 11:03:35
问题 I've a Java Spring Web application that I need to use as SOAP client. I'm using Maven and I've got a main module (WAR) with my custom code and a child module (JAR dependency) with the WSDLs (I've two WSDL) generated classes. As you can see in the title when I run the application an error occurs javax.xml.bind.JAXBException: doesn't contain ObjectFactory.class or jaxb.index This is the ApplicationContext.xml of the main module: <bean id="messageFactory" class="org.springframework.ws.soap.saaj

Web services vs Spring remoting

守給你的承諾、 提交于 2019-12-10 04:17:05
问题 I quite didnt get the difference between a regular web service implemented either through spring or axis versus Remoting. If my question is not at all related, I am just confused between spring web services vs spring remoting. When to go for remoting and when to go with a web service. Appreciate your answer 回答1: Spring Web Services is a dedicated Spring Project (using Spring's own Web Service technology), whereas Spring Remoting is a common approach of integrating different third party

Spring Web-Service unmarshalling not working

送分小仙女□ 提交于 2019-12-09 16:34:01
问题 I have configured my WebService like this: applicationContext: <sws:annotation-driven /> <bean class="org.springframework.ws.server.endpoint.mapping.PayloadRootAnnotationMethodEndpointMapping" > <property name="interceptors"> <list> <bean class="org.springframework.ws.server.endpoint.interceptor.PayloadLoggingInterceptor"/> </list> </property> Note: the Interceptor is loaded on startup, but doesn´t write anything, if a request is coming in. I have a class PersonServiceImpl with the method

How can a Spring Soap interceptor modify the contents of a message?

非 Y 不嫁゛ 提交于 2019-12-09 12:53:46
问题 I'm trying to write an interceptor for a web service that will modify the contents of the Soap message before is sent on to the endpoint. If a client sent a message where the value of some element is 1, I want to be able to alter that element to a 2 so that, when the message arrives at the endpoint, it looks as if the client submitted a 2 instead of a 1. I'm not sure if this is a difficult task which is elluding me, or an easy task which I am making harder than it needs to be. I have stepped

Spring web service client for calling Apache axis web service

六月ゝ 毕业季﹏ 提交于 2019-12-08 08:42:27
问题 I need to call the external(Remote) web service through my spring web service client proramme. How can i send the request to remote web service service? 回答1: http://static.springsource.org/spring-ws/sites/1.5/reference/html/client.html Basically you can use the Spring webservice template for calling remote soap services. 来源: https://stackoverflow.com/questions/880971/spring-web-service-client-for-calling-apache-axis-web-service

Spring Web service unmarshalling not happening correctly

戏子无情 提交于 2019-12-08 03:18:27
问题 I have been trying to integrate the spring WS to test a SOAP webservice.Integration has hit a roadblock as I am not able receive the proper response in the unmarshelled object. Below are the details: Application Context is below: <!-- Define the SOAP version used by the WSDL --> <bean id="soapMessageFactory" class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory"> <property name="soapVersion"> <util:constant static-field="org.springframework.ws.soap.SoapVersion.SOAP_12"/> </property>

Sign SOAP request on client-side with Spring

[亡魂溺海] 提交于 2019-12-08 01:42:57
问题 I have read the Spring doc regarding Securing your Web services with Spring-WS but it looks for me as if the article is just regarding server side and not client side. Indeed, it is working fine for server side with Wss4jSecurityInterceptor but I need to sign a request to an external Web service. So, first question. Am I right and chapter 7 of Spring Web Services documentation just apply to server side? Second. It is possible, to add security, like signed headers, to SOAP requests on client

Spring-ws or Axis2 or Something else for “Contract-First” approach to WS

北慕城南 提交于 2019-12-07 18:56:55
问题 Everyone's saying "Contract-First" approach to design WS is more inclined to SOA style design. Now, if we take the available open-source frameworks available to achieve that we have Spring-ws and also Axis2 (which supports both styles). I have a task to design SOA based e-commerce app. where loose coupling, quick response, security and scalability are the key points. So it is very important to choose the right framework from the start. Based on past experiences, which of them or something