Question

Pega Proxy Access

Hi,

My organisation currently sends and receives all external network traffic through a proxy. I am currently trying to build in functionality that will allow us to translate text automtically by using the Microsoft Translate API. Unfortunately Pega is currently unable to communicate with Microsoft as the application is internal and therefore behind the proxy.

I have tried to modify the prconfig.xml file to allow Pega to communicate through the proxy with no luck. Does anyone have any guidance as to how I can get this to work?

Thanks,
Jack

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Group Tags

Correct Answer
December 30, 2016 - 7:15am

Hello!

Upon reviewing the corresponding SR, we see that it has been resolved by applying HFix-30397.

Please raise an SR with Pega Global Customer support in you have the same requirement.

Regards,
Lochan  |  Community Moderator  |  Pegasystems Inc.

Comments

Keep up to date on this post and subscribe to comments

October 3, 2016 - 8:54am

MS Translate API provides SOAP service, you can use connect-soap to access the service, refer to this link: https://pdn.pega.com/support-articles/how-configure-proxy-setting-soap-connector

October 3, 2016 - 9:50am
Response to KevinZheng_GCS

Thanks for your reply Kevin. However, this will not solve my problem as the current issue I have is that my application does not know the proxy settings required by my organisation to connect to the internet.

The error I am experiencing is below:

** Error loading RULE-DECLARE-PAGES D_BEARERTOKEN #20160724T172136.030 GMT , Reason : Caught unhandled exception: java.net.UnknownHostException: datamarket.accesscontrol.windows.net: unknown error

I have also attached a screenshot of the issue in tracer. This does indicate a connection failure right?

Thanks,
Jack

 

October 12, 2016 - 8:14am

You should check with your IT to get the proxy server info. Also, you are using connect-http, not connect-soap from the trace, is that intentional? For connect-http, you may have to do something similar to this: https://pdn.pega.com/support-articles/http-proxy-setting-jvm-ignored-connect-http. What is your pega version?

October 19, 2016 - 12:28pm
Response to KevinZheng_GCS

Hi Kevin

I have got the proxy information from IT. But yes I am using Connect HTTP to connect to Microsoft Translate API as stated in their documentation:

https://msdn.microsoft.com/en-us/library/ff512387.aspx

Pega version is 7.1.8. At the moment I am getting an error regarding the apache library so I am asking the server admin to check the apache installation status.

Does Pega need apache installed to execute these operations?

October 31, 2016 - 5:19am

Hi all,

I'm still having problems configuring Pega to use our corporate proxy for the HTTP REST connector. I'm currently trying to configure step 11 in "pyInvokeRESTConnector" by using the following code but I'm unable to figure out where I need to modify the code to request that Pega sends all data through the proxy. Can anyone help me modify this correctly please?

"

//BUG-140473 : Support for proxy
    String proxyHost = System.getProperty("http.proxyHost");
    if(proxyHost!=null && proxyHost.length()>0){
        String proxyPort = System.getProperty("http.proxyPort");
        int proxyPortInt = Integer.parseInt(proxyPort);

        // Instantiate new HttpHost for proxy config
        com.pega.apache.http.HttpHost proxy = new com.pega.apache.http.HttpHost(proxyHost, proxyPortInt);

        String proxyUser = System.getProperty("http.proxyUser");
        if(proxyUser!=null && proxyUser.length()>0)
        {
            String proxyPwd = System.getProperty("http.proxyPassword");
            // Set up Basic auth as Scheme for Proxy
            List<String> authpref = new ArrayList<String>();
            authpref.add(com.pega.apache.http.client.params.AuthPolicy.BASIC);
            client.getParams().setParameter(com.pega.apache.http.auth.params.AuthPNames.PROXY_AUTH_PREF, authpref);

            // Configure proxy Authentication details
            com.pega.apache.http.client.CredentialsProvider credsProvider = client.getCredentialsProvider();
            credsProvider.setCredentials(new com.pega.apache.http.auth.AuthScope(proxyHost, proxyPortInt),
                new com.pega.apache.http.auth.UsernamePasswordCredentials(proxyUser, proxyPwd));
            client.setCredentialsProvider(credsProvider);
        }
        // Set the httpClient to use our Proxy config
        client.getParams().setParameter(com.pega.apache.http.conn.params.ConnRoutePNames.DEFAULT_PROXY, proxy);
    }"

November 7, 2016 - 11:07am

Hi all,

I have submitted a formal SR for this as it appears to be a bug in the code. The ticket is with engineering, but thanks for everyones help/suggestions!

Mod
November 7, 2016 - 11:25am
Response to JackL871

Hi Jack,

Thanks for the update. Please let us know the SR number so that we could tag that to your post above and track it until closure.

Regards,
Lochan  |  Community Moderator  |  Pegasystems Inc.

Lochana | Community Moderator | Pegasystems Inc.

November 14, 2016 - 8:53am
Response to Lochan_DV

Hi Lochan

The SR number for this fix is:SR-B2686

Thanks 

Mod
November 14, 2016 - 9:17am
Response to JackL871

Thanks Jack!

I've updated your post above to reflect this information.

Regards,
Lochan  |  Community Moderator  |  Pegasystems Inc.

Lochana | Community Moderator | Pegasystems Inc.

Mod
December 30, 2016 - 7:15am

Hello!

Upon reviewing the corresponding SR, we see that it has been resolved by applying HFix-30397.

Please raise an SR with Pega Global Customer support in you have the same requirement.

Regards,
Lochan  |  Community Moderator  |  Pegasystems Inc.

Lochana | Community Moderator | Pegasystems Inc.