soap - Spring WS unavailable upon requesting connection -
i've got spring ws i'm able call 2 requests. here output:
2011-07-20 18:25:33,743 debug [org.springframework.ws.client.core.webservicetemplate] - opening [org.springframework.ws.transport.http.httpurlconnection@1696452] [http://mymachine:8080/test-service/historyservice] 2011-07-20 18:25:33,868 debug [org.springframework.ws.soap.saaj.support.saajutils] - soapelement [com.sun.xml.internal.messaging.saaj.soap.ver1_1.envelope1_1impl] implements saaj 1.3 2011-07-20 18:25:33,900 debug [org.springframework.ws.soap.saaj.support.saajutils] - soapelement [com.sun.xml.internal.messaging.saaj.soap.ver1_1.body1_1impl] implements saaj 1.3 2011-07-20 18:25:34,259 debug [org.springframework.ws.client.messagetracing.sent] - sent request [<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:header/><soap-env:body><ns2:getlistrequest xmlns:ns2="http://address_changed"><ns2:userid>ncc1@%</ns2:userid><ns2:datefrommillis>1308524400000</ns2:datefrommillis><ns2:datetomillis>1311202800000</ns2:datetomillis></ns2:getlistrequest></soap-env:body></soap-env:envelope>] 2011-07-20 18:25:36,728 debug [org.springframework.ws.client.messagetracing.received] - received response [<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:header/><soap-env:body><ns2:getlistresponse xmlns:ns2="address_changed"><ns2:conversations><ns2:conversationid>1</ns2:conversationid><ns2:conversationstartdate>2011-06-30t10:37:53.964+01:00</ns2:conversationstartdate><ns2:conversationenddate>2011-06-30t10:37:58.543+01:00</ns2:conversationenddate><ns2:participants>usr1</ns2:participants><ns2:participants>usr1</ns2:participants></ns2:conversations></ns2:getlistresponse></soap-env:body></soap-env:envelope>] request [<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:header/><soap-env:body><ns2:getlistrequest xmlns:ns2="address_changed"><ns2:userid>ncc1@%</ns2:userid><ns2:datefrommillis>1308524400000</ns2:datefrommillis><ns2:datetomillis>1311202800000</ns2:datetomillis></ns2:getlistrequest></soap-env:body></soap-env:envelope>]
but when making request call newly created method, error service not available, although service available other (originally present) method calls. output is:
2011-07-20 18:25:53,166 debug [org.springframework.ws.client.core.webservicetemplate] - opening [org.springframework.ws.transport.http.httpurlconnection@1f2e95f] [http://mymachine:8080/test-service/historyservice] 2011-07-20 18:25:53,166 debug [org.springframework.ws.client.messagetracing.sent] - sent request [<soap-env:envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/"><soap-env:header/><soap-env:body><ns2:delconversationlistrequest xmlns:ns2="http://astrium.eads.net/eow"><ns2:userid>ncc1@%</ns2:userid><ns2:datefrommillis>1308524400000</ns2:datefrommillis><ns2:datetomillis>1311202800000</ns2:datetomillis></ns2:delconversationlistrequest></soap-env:body></soap- env:envelope>] 2011-07-20 18:25:53,181 debug [org.springframework.ws.client.core.webservicetemplate] - received error request [saajsoapmessage {http://changedaddress}delconversationlistrequest] 2011-07-20 18:25:53,197 error [net.org.controller.getconvcontroller] - service unavailable at: http://mymachine:8080/test-service/historyservice, not found [404]
please suggest.
managed issue resolved. problem war file deploying in tomcat (webapps folder) did not contain latest code changes , main project pom file.
to include maven directories, in eclipse ide, right click on ws project --> properties --> java ee module dependencies --> check maven dependencies checkbox. rebuild project , re-deploy war file in tomcat. include pom file along other maven dependencies.
Comments
Post a Comment