WSRP :- Web services for remote portlet allows easy interaction of remote portlets from other portal server. With out having the source code for those portlets. In this process one portlet will be producer and the other portlet will be consumer. Producer and consumer can be of same portal or can be of different portal.
WSRP Producer :- The producer part enables the portlets to provide portlets as remote WSRP services. Producer works as server for WSRP communication. Producer can provide one or more portlets as WSRP services for consumer applications.
WSRP Consumer :- The consumer works as client for WSRP communication. It receives the markup from producer and displays in current portal.
WSDL URL portal8 :- http://localhost:10039/wps/wsdl/service.wsdl?version=v2 this url is for producer
Security :- If the Producer portal provides security for WSRP, the Consumer portal must have the same security setup for WSRP. Then only consumer can retrieve markup from producer.
Example (We will enable a portlet as webservice provider in one portal and consume it on another portal) :-
Step1 :- Login to websphere portal administration and navigate to Manage Portlets and then identify the portlet you want to provide as WSRP service.
Click ok on it then a tick mark will appear on it.
WSRP Producer :- The producer part enables the portlets to provide portlets as remote WSRP services. Producer works as server for WSRP communication. Producer can provide one or more portlets as WSRP services for consumer applications.
WSRP Consumer :- The consumer works as client for WSRP communication. It receives the markup from producer and displays in current portal.
WSDL URL portal8 :- http://localhost:10039/wps/wsdl/service.wsdl?version=v2 this url is for producer
Security :- If the Producer portal provides security for WSRP, the Consumer portal must have the same security setup for WSRP. Then only consumer can retrieve markup from producer.
Example (We will enable a portlet as webservice provider in one portal and consume it on another portal) :-
Step1 :- Login to websphere portal administration and navigate to Manage Portlets and then identify the portlet you want to provide as WSRP service.
Step2 :- After selecting the portlet you want to explore click on the first icon provide portlet. This will make the portlet as WSRP portlet. Give anonymous user access to that portlet.
Step3 :- Now login to consumer portal and navigate to websphere portal administration and click on Web Services under Portlet Managment.
Step4 :- Now click on new Producer and fill wsdl url of your producer portal which is configured in the step1.
Click next
Click next
Step5 :- Now navigate to web modules and click on consume
Now select the producer which was created previously and listed above
Step6 :- Now select the About Websphere Portal portlet which coming from the producer
Now click ok
Step 7 :- Now you can create a page and add the remote portlet to your page. You can even try producer and consumer in single portal also.
No comments:
Post a Comment