In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about the example analysis of how to carry out WSRP. Many people may not know much about it. In order to make you understand better, the editor has summarized the following contents for you. I hope you can get something according to this article.
This week, in addition to continuing to think about the modeling and implementation of the data rights model, I also focused on WSRP (Web Service for Remote Portlet). This technology mainly uses WebService method to integrate remote portlet from other applications into its own Portal application.
First of all, you need to have a Producer, that is, the source of the service, which is divided into two types: Simple Producer and Complex Producer, the general use of Workshop to create Portal projects are Complex, while the general Web Project is only Struts or PageFlow are Simple, in fact, the process of generating Producer is very simple, if it is the use of Workshop, there is a very simple menu, of course, even if it is not the use of Workshop, that is, copy a few Jar and generate several XML files. But in any case, there is a problem is that the Producer must be run on Portal Domain, otherwise you won't be able to find the services in the Producer (I'll talk about how to find them later).
Then there is the Consumer that applies Remote Portlet. This step is also very simple, that is, select the type remote portlet when creating the portlet, then enter the WSDL of the producer, usually "[WEB_ERL] / producer?WSDL", and then click Retrive to find the portlet in the Producer, and then select a portlet to create successfully.
After running the portal test, you found two problems:
The problem with 1.URL is that if the URL in the original producer does not use the URL tag of portal or the application generates URL, then the application of this URL in consumer will have a connection error, and it is obvious that some pictures cannot be displayed.
two。 User identity problem, if the user identity is required in producer, if CA and SSO are not set, then producer cannot get the logged-in user in consumer.
These two problems are fatal, involving the modification of the original application and the need to deploy SSO. In addition, in addition to the limitation of the need for producer to be deployed in Portal Domain, and of course, there are differences in styles between producer and Consumer, so it seems that there are still great difficulties in the application of WSRP in the current work.
After reading the above, do you have any further understanding of how to do the sample analysis of WSRP? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.