WSRP : Images from remote portlets are not displayed?
-
2012년 4월 5일 목요일 오전 9:11
We are using the WSRP Viewer web part to add a remote portlet to one of the pages.
The WSRP producer is configured to be trusted by adding the following in the TrustedWSRPProducers.xml file.
<Configuration>
<Producer Name="TestProducer" AllowScripts="true">
<ServiceDescriptionURL>http://10.40.37.101/tdrp/portlets/WSRPServiceDescriptionService</ServiceDescriptionURL>
<RegistrationURL>http://10.40.37.101/tdrp/portlets/WSRPRegistrationService</RegistrationURL>
<MarkupURL>http://10.40.37.101/tdrp/portlets/WSRPBaseService</MarkupURL>
<PortletManagementURL>http://10.40.37.101/tdrp/portlets/WSRPPortletManagementService</PortletManagementURL>
</Producer>
</Configuration>
The producer provides only one portlet called "TestPortlet", which we configured to view in the WSRP Viewer web part.
The portlet is supposed to display a form and an image for logo. The portlet displays the form but the image is not displyed.
On checking the logs we found the following entry:
Selected WSRP portlet server http://10.40.37.101/tdrp/portletresource/C:10.40.37.101:-c77d887:13527ebc696:-7ff9/S:10.40.37.101:-c77d887:13527ebc696:-7ff8:E:0:default/images/logo.gif is not trusted on this server.
How to specify that the image is coming from a trusted server?
Note: On J2EE based WSRP consumers the image is being rendered by the portlet.
모든 응답
-
2012년 4월 10일 화요일 오전 1:49중재자
-
2012년 4월 10일 화요일 오전 3:39
Hi
Please Check this Link
http://blog.mikehacker.net/2011/04/22/sharepoint-2010web-services-for-remote-portlets/
-
2012년 4월 15일 일요일 오전 4:38
The information at this link doesn't help. We have successfully configured the portlet.
The portlet is supposed to display a form and an image for logo. The portlet displays the form but the image is not displyed. On checking the logs we found the following entry:
Selected WSRP portlet server http://10.40.37.101/tdrp/portletresource/C:10.40.37.101:-c77d887:13527ebc696:-7ff9/S:10.40.37.101:-c77d887:13527ebc696:-7ff8:E:0:default/images/logo.gif is not trusted on this server.
How to specify that the image is coming from a trusted server? -
2012년 4월 17일 화요일 오후 1:23중재자
Hello,
This generally happens due to invalid configuration at C:\Program Files\Microsoft Office Servers\14.0\Config\TrustedWSRPProducers.config file. Please review/re-create this file with the below sample.
<Configuration xmlns="http://schemas.microsoft.com/office/sps/2005/WSRP/Configuration" ProxyAddress="http://ProxyIfAny:80"> <Producer Name="NetUnity" AllowScripts="true"> <ServiceDescriptionURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</ServiceDescriptionURL> <RegistrationURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</RegistrationURL> <MarkupURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</MarkupURL> <PortletManagementURL>http://wsrp.netunitysoftware.com:80/WSRPTestService/WSRPTestService.asmx</PortletManagementURL> <RedirectServers><RedirectServer>wsrp.netunitysoftware.com</RedirectServer></RedirectServers> <!--SsoApplication Name="NetunityWSRP"/--> </Producer> </Configuration>Please remember to click 'Mark as Answer' on the post that helps you or click 'Unmark as Answer' if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Regards,
Nishant Shah
Microsoft Online Community Support- 답변으로 표시됨 Naresh Shorey 2012년 4월 18일 수요일 오전 11:04
-
2012년 4월 18일 수요일 오전 11:08
Many thanks Nishant.
The configuration file was fine. All it was missing was the RedirectServers tag, which did the job. The following configuration works perfectly fine:
<Configuration xmlns="http://schemas.microsoft.com/office/sps/2005/WSRP/Configuration">
<Producer Name="TestProducer" AllowScripts="true">
<ServiceDescriptionURL>http://10.40.115.200/tdrp/portlets/WSRPServiceDescriptionService</ServiceDescriptionURL>
<RegistrationURL>http://10.40.115.200/tdrp/portlets/WSRPRegistrationService</RegistrationURL>
<MarkupURL>http://10.40.115.200/tdrp/portlets/WSRPBaseService</MarkupURL>
<PortletManagementURL>http://10.40.115.200/tdrp/portlets/WSRPPortletManagementService</PortletManagementURL>
<RedirectServers><RedirectServer>10.40.115.200</RedirectServer></RedirectServers>
</Producer>
</Configuration>

