how to make spring-ws service running on jboss5.1 to send response to client

I was  running the application given on http://justcompiled.blogspot.in/2010/09/building-web-service-with-spring-ws.html.
  on jboss5.1ga,my jdk  1.6.
The client--- http://justcompiled.blogspot.in/2010/11/web-service-client-with-spring-ws.html
application was not getting the response.
The response was null.After doing some work around found the solution.
We need to add a messageFactory bean to the spring-ws-servlet.xml file.
This should point to a class-com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl
It can be downloaded from-http://download.java.net/maven/1/com.sun.xml.messaging.saaj/jars/ 
Download the  saaj-iml-1.3.jar and add to your lib folder.
edit your  spring-ws-servlet.xml file and edit
<bean class="org.springframework.ws.soap.saaj.SaajSoapMessageFactory" id="messageFactory"> <property name="messageFactory"> < bean class="com.sun.xml.messaging.saaj.soap.ver1_1.SOAPMessageFactory1_1Impl"> </bean<>/property> </bean>
Required jars for spring-ws to work on jboss5.1
commons-logging-1.1.1.jar
log4j-1.2.9.jar
spring-asm-3.0.5.RELEASE.jar
spring-beans-3.0.5.RELEASE.jar
spring-context-3.0.5.RELEASE.jar
spring-context-support-3.0.5.RELEASE.jar
spring-core-3.0.5.RELEASE.jar
spring-expression-3.0.5.RELEASE.jar
spring-oxm-3.0.5.RELEASE.jar
spring-web-3.0.5.RELEASE.jar
spring-webmvc-3.0.5.RELEASE.jar
spring-ws-core-2.0.1.RELEASE.jar
spring-xml-2.0.1.RELEASE.jar
wsdl4j-1.6.1.jar

saaj-impl-1.3.jar---not required for tomcat
commons-lang2.5jar


Comments

Popular posts from this blog

defining functions clojure

How to retain the space of the td after hidding it in Jquery

Integrating Struts2 with Spring Security using Custom Login Form