從版本1.0-RC2升級到1.0
自RC2以來沒有重大更改。
從版本1.0-RC1升級到1.0-RC2
在專案的1.0候選版本1和2之間進行了一些小的最後更改。以下內容應幫助大多數使用者更新其應用程式
客戶端
已解決一些問題,這些問題使WebServiceTemplate在Plain Old XML設定中更可用,而SOAP特定性降低。
- 各種過載的sendAndReceive()方法已重新命名以幫助理解。方法簽名現在反映了傳送的內容(例如,一個Source)以及接收的內容(例如,一個Result)。
- TheWebServiceMessageCallback方法doInMessage()已重新命名為doWithMessage(),因為它命名不佳。
- TheFaultResolver已重新命名為FaultMessageReceiver以更清楚地表明其職責。
- TheSoapActionCallback已移動到org.springframework.ws.soap.client.core.
從版本1.0-M3升級到1.0-RC1
在專案的1.0里程碑3和候選版本1之間進行了一些小的更改。以下內容應幫助大多數使用者更新其應用程式
附件
附件支援必須移動和更改以方便MTOM。
- The附件介面已從org.springframework.ws.soap移動到org.springframework.ws.mime.
- Theid屬性在Attachment>> 重新命名為 <<contentId.
- 用於獲取和新增附件的方法從SoapMessage提取到一個新介面MimeMessage. 現在,新增方法需要內容ID。
WebServiceTemplate
TheWebServiceTemplate不再為每個方法宣告IOException。相反,在org.springframework.ws.client.
HttpUrlConnectionMessageSender 和 CommonsHttpMessageSender
TheHttpUrlConnectionMessageSender和CommonsHttpMessageSender失去了他們的url屬性。URL(或者更確切地說:URI)現在在WebServiceTemplate上定義,方法是指定預設URI,或者將URI作為引數給出。
EndpointInterceptor
TheEndpointInterceptor現在有一個handleFault方法,該方法被呼叫(而不是handleResponse),當WebServiceMessage.hasFault()對於響應為true時。
SoapMessageDispatcher
- SoapMessageDispatcher的所有策略介面(SoapEndpointInterceptor, SoapEndpointMapping)已從org.springframework.ws.soap移動到org.springframework.ws.soap.server.
從版本1.0-M2升級到1.0-M3
在專案的1.0里程碑2和里程碑3之間進行了一些更改。這些更改增加了程式碼的模組化,增強了單元測試,使程式包角色更加清晰,併為介面卡和使用web.xml安全約束來保護HTTP資源添加了引人注目的替代方法。
不幸的是,需要更改API和程式包位置。以下內容應幫助大多數使用者更新其應用程式
MessageContextFactory
MessageContextFactory已重構為WebServiceMessageFactory,不再建立MessageContexts,而是建立WebServiceMessages。 此更改主要是內部的,但是您需要更改工廠的名稱
- 如果您使用AxiomSoapMessageContextFactory之前,請將其替換為AxiomSoapMessageFactory.
- 如果您使用SaajSoapMessageContextFactory之前,請替換為SaajSoapMessageFactory.
MessageDispatcher
為了清楚地區分伺服器端和客戶端程式碼,我們不得不移動各種伺服器端類。
- TheMessageDispatcher已移動到org.springframework.ws.server包。
- TheSoapMessageDispatcher已移動到org.springframework.ws.soap.server包。
- MessageDispatcher的所有策略介面(EndpointAdapter, EndpointInterceptor, EndpointMapping, EndpointExceptionResolver)已從org.springframework.ws移動到org.springframework.ws.server.
端點
- 中的所有端點實現和介面卡org.springframework.ws.endpoint已移動到org.springframework.ws.server.endpoint.
- TransformerObjectSupport已移至Spring-XML模組中。
端點攔截器
- 所有EndpointInterceptors inorg.springframework.ws.endpoint.interceptor已移動到org.springframework.ws.server.endpoint.interceptor.
- 所有EndpointInterceptors inorg.springframework.ws.soap.endpoint.interceptor已移動到org.springframework.ws.soap.server.endpoint.interceptor.
- ThePayloadValidatingInterceptor已移動到org.springframework.ws.soap.server.endpoint.interceptor也是如此。
端點對映
- 所有EndpointMappings inorg.springframework.ws.endpoint.mapping已移動到org.springframework.ws.server.endpoint.mapping.
- 所有EndpointInterceptors inorg.springframework.ws.soap.endpoint.mapping已移動到org.springframework.ws.soap.server.endpoint.mapping.
端點異常解析器
- 所有EndpointExceptionResolvers inorg.springframework.ws.soap.endpoint已移動到org.springframework.ws.soap.server.endpoint.
TransportContext
- TransportContext和TransportContextHolder已移動到org.springframework.ws.transport.context包。
MessageEndpointAdapter
- TheMessageEndpointAdapter已重新命名為WebServiceMessageReceiverHandlerAdapter,但仍位於同一包中(org.springframework.ws.transport.http).
SoapMessageContext
- TheSoapMessageContext已被刪除。MessageContext提供相同的功能,儘管可能需要強制轉換。