用于遠(yuǎn)程Portlet的Web服務(wù)(Web Services for Remote Portlets,WSRP)是OASIS創(chuàng)建的一種面向表示的web服務(wù)標(biāo)準(zhǔn),它允許在具有門戶的可視、用戶互動(dòng)web服務(wù)或者其他中間web應(yīng)用程序中實(shí)現(xiàn)即插即用。WSRP允許網(wǎng)絡(luò)中的遠(yuǎn)程門戶資源可以在本地門戶中提供。BEA在2004年2月發(fā)布了一款WSRP技術(shù)預(yù)覽套件,在2004年7月為這款產(chǎn)品添加了官方支持。您必須使用具有WSRP的WebLogic Portal 8.1 SP3或者更新的版本。
如果您對(duì)WSRP不熟悉,訪問本文末尾中的有用鏈接會(huì)有很大的幫助。這將確保您熟悉WSRP的主要概念以及它們?cè)赪ebLogic Portal 8.1 SP3中的工作方式。
可提供什么? BEA已經(jīng)在公共測(cè)試服務(wù)器上提供了一個(gè)遠(yuǎn)程portlet示例,來幫助開發(fā)人員深入掌握WSRP。
目前,我們已經(jīng)擁有了5個(gè)可以通過WSRP訪問的駐留portlet。這些portlet是:
BEA: WSRP
BEA: Racing!
BEA: Double Byte
BEA: SOA - eWorld 2004
BEA: Download WebLogic Portal 8.1
您需要的主要URL是:
- WebLogic Portal 8.1 SP3測(cè)試服務(wù)器:http://wsrp.bea.com
- 具有WSRP portlet的WSRP門戶示例:http://wsrp.bea.com/portal/wsrp.portal
- WSDL Address:http://wsrp.bea.com/portal/producer?wsdl
為了在WebLogic Portal項(xiàng)目中支持遠(yuǎn)程portlet,您可以使用Workshop或者Portal Administration工具。Workshop使您可以通過portlet向?qū)韯?chuàng)建一個(gè)引用遠(yuǎn)程portlet的代理portlet。Administration Portal使您可以通過添加Producer來創(chuàng)建代理portlet。
從Workshop使用WSRP測(cè)試服務(wù)器
在這個(gè)例子中,我們?cè)谝粋€(gè)門戶域中使用具有Portal Application的Workshop(您可以使用其他的配置 — 參見“ Working with Producers ”)。為了創(chuàng)建代理portlet:
- 右鍵點(diǎn)擊Portal project,選擇“New”→“Portlet”。
- 在Portlet Wizard中選擇“Remote Portlet”選項(xiàng)。
- 將以下測(cè)試服務(wù)器WSDL粘貼到Remote Server字段中: http://wsrp.bea.com/portal/producer?wsdl。
- 根據(jù)Wizard提示來注冊(cè)Producer。
- 選擇一個(gè)portlet和應(yīng)用程序聯(lián)合,例如:“BEA: eWorld 2004”。
- 完成以后,您將得到一個(gè).portlet 文件。.portlet應(yīng)該文件存放在什么地方呢?
- 把 portlet 添加到門戶中,用拖放操作把它放置在所需的位置上(book、page等)。
- 運(yùn)行門戶來察看遠(yuǎn)程portlet。
從Administration Portal使用WSRP測(cè)試服務(wù)器
在訪問Administration Portal之前,您必須首先運(yùn)行WebLogic Portal服務(wù)器。您應(yīng)當(dāng)運(yùn)行WebLogic Portal 8.1 SP3或者更新的版本。
使用Administration Portal,按照以下的說明來創(chuàng)建代理portlet:
- 在Portal選項(xiàng)卡中,展開左邊的Portal Library。
- 右鍵點(diǎn)擊“Portlet Producer”文件夾,選擇“Add Producers”。
- 在Add Producer對(duì)話框中,將測(cè)試服務(wù)器WSDL粘貼到Producer字段中:http://wsrp.bea.com/portal/producer?wsdl
- 點(diǎn)擊“Add Producer”創(chuàng)建到producer的引用。
- 鍵入Producer Property。
- 點(diǎn)擊“Register”確立與producer的關(guān)系。
- 注冊(cè)完成后,點(diǎn)擊producer鏈接察看所提供的遠(yuǎn)程portlet(參見下圖)。
- 點(diǎn)擊“Add”激活portlet庫中的遠(yuǎn)程portlet。
- 將portlet添加到桌面。
- 如果想預(yù)覽遠(yuǎn)程portlet,右鍵點(diǎn)擊桌面,并選擇“View Desktop”。
您還可以使用WebLogic Portal 8.1 SP3或更新版本將自己的portlet(Page Flow、Struts、JSR168)作為遠(yuǎn)程portlet發(fā)布。如果使用WebLogic Server 8.1 SP3或者更新版本,您可以把使用Page Flow和Struts創(chuàng)建的應(yīng)用程序作為WSRP資源發(fā)布。要獲取更多關(guān)于使用WSRP的信息,請(qǐng)?jiān)L問以下鏈接:
- 利用WebLogic Portal 8.1使用Web Services for Remote Portlets (WSRP):
http://dev2dev.bea.com/products/wlportal81/articles/wsrp.jsp - WSRP Standards 站點(diǎn):
http://www.oasis-open.org/committees/wsrp/ - BEA WebLogic Portal 8.1 相關(guān)站點(diǎn):
http://dev2dev.bea.com/products/wlportal81/index.jsp
http://e-docs.bea.com/wlp/docs81/wsrp/index.html
http://edocs.bea.com/wlp/docs81/index.html - 網(wǎng)絡(luò)培訓(xùn):WSRP和 Federated Portals
http://dev2dev.bea.com/trainingevents/webinars/060904_wsrp.jsp
本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)
點(diǎn)擊舉報(bào)。