0
2つのリクエストに対して正常に呼び出すことができるSpring WSがあります。ここでは、出力は次のようになります。接続要求時にSpring WSを使用できません
2011-07-20 18:25:33,743 DEBUG [org.springframework.ws.client.core.WebServiceTemplate] - Opening [[email protected]] to [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>[email protected]%</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>] for 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>[email protected]%</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:53,166 DEBUG [org.springframework.ws.client.core.WebServiceTemplate] - Opening [[email protected]] to [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>[email protected]%</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 for 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]
お勧めします。
設定をいくつか表示できますか? Spring-WSのどのバージョン?あなたは新しい方法に注釈を付けましたか? –