cerulean

          Web Service Internationalization

          i18n,之前在J2EE里,自然用struts來做。但是Web Service里貌似應該不需要這部分,但是實際上,有些操作還是避免不了要支持多國語言。
          查了一圈兒,好像WS-i18n還在working draft的階段,而且好像已經好幾年了……也沒找到什么開源中間件的實現。
          大意是在SOAP header中加上<i18n:international>相關的標簽。
          因為畢竟是Web Service,利用http header還是不太妥,還是要放在SOAP里面。

          記錄一下查到的鏈接,備用。

          http://www.coderanch.com/t/224875/Web-Services/java/Web-Services-Internationalization-jax-ws
          For a SOAP web service the language/country code should be part of the SOAP request and possibly the SOAP response. You can always base your solution on the above WS-I18N working draft.
          Internationalization isn't as big a priority with SOAP web services as it is with web pages as web services are consumed by other applications - not humans. In most cases normalized "generic data" is exchanged which is displayed on the client using the client's locale. SOAP web services exchanging localized text are pretty much in the minority.


          posted on 2011-06-15 16:49 cerulean 閱讀(284) 評論(0)  編輯  收藏


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          導航

          <2011年6月>
          2930311234
          567891011
          12131415161718
          19202122232425
          262728293012
          3456789

          統計

          常用鏈接

          留言簿(3)

          隨筆分類

          隨筆檔案

          搜索

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 德格县| 舞钢市| 确山县| 元朗区| 台安县| 南江县| 建瓯市| 平乐县| 鄂托克旗| 西峡县| 新野县| 炎陵县| 夏邑县| 咸丰县| 泸州市| 宜阳县| 丽水市| 鄂托克前旗| 乌鲁木齐县| SHOW| 巴里| 中西区| 鸡西市| 高雄市| 黄石市| 昌江| 茂名市| 定陶县| 肥西县| 门源| 株洲县| 双辽市| 临高县| 阿荣旗| 长沙市| 冕宁县| 伊宁市| 汽车| 吐鲁番市| 天全县| 永仁县|