Configuring the Web Clipping portlet to use an HTTP Proxy

Today, I was setting up an internal (intranet) deployment of WebCenter and one of the things I needed to display was the company share price, pulled from the Internet.  In order to do this, I used the built in Web Clipping portlet.  However, it needs to be configured to use an HTTP proxy so that it can access content on the Internet.

This is done by adding some settings to the provider.xml configuration file used by the portlet.  This configuration file is stored under the domain directory.  In my case, it is located here:

C:\Oracle\Middleware\user_projects\domains\base_domain\servers\
WLS_Portlet\tmp\_WL_user\portalTools_11.1.1.2.0\vuzpes\war\WEB-INF\
providers\webClipping\provider.xml

Note that the directory in bold and underlined is an automatically generated name.  Yours will probably have a different name.  It gets created when you add the web clipping portlet to a page.  You will want to do that first, if you have not already, so that the configuration file we need will be created.

If you open up this file, and scroll down about 30 or so lines, you will find that there is a long commented section that explains all of the proxy settings.  Following this, there is a sample set of proxy settings, as shown below:

 <!-- proxy information: Fill the following up if you have a proxy                           server between the provider and external sites.
  <proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
    <httpProxyHost>yourproxy.yourdomain.com</httpProxyHost>
    <httpProxyPort>80</httpProxyPort>
    <dontProxyFor>.yourdomain.com</dontProxyFor>
  </proxyInfo>
  -->
Note that these are also commented out in the file.  You will need to update them with your proxy server settings, and also uncomment them.  There are several other settings that allow you to use a variety of different type of proxies, including those that require a user sign on.  For a basic HTTP proxy, you will just need to set the two items shown in bold in the sample above.
Once you have updated this file, you should restart for WLS_Portlet managed server.  Then your web clipping portlet will be able to access the Internet through your HTTP proxy.

About Mark Nelson

Mark Nelson is an Architect (an "IC6") in the Fusion Middleware Central Development Team at Oracle. Mark's job is to make Fusion Middleware easy to use in the cloud and at home, for developers and operations folks, with special focus on continuous delivery, configuration management and provisioning - making it simple to manage the configuration of complex environments and applications built with Oracle Database, Fusion Middleware and Fusion Applications, on-premise and in the cloud. Before joining this team, Mark was a senior member of the A-Team since 2010, and worked in Sales Consulting at Oracle since 2006 and various roles at IBM since 1994.
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s