Question
GE Healthcare
GB
Last activity: 30 Dec 2016 7:15 EST
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
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Pegasystems Inc.
IN
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.
Pegasystems Inc.
US
MS Translate API provides SOAP service, you can use connect-soap to access the service, refer to this link: https://community.pega.com/support-articles/how-configure-proxy-setting-soap-connector
GE Healthcare
GB
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
Pegasystems Inc.
US
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://community.pega.com/support/support-articles/http-proxy-setting-jvm-ignored-connect-http. What is your pega version?
GE Healthcare
GB
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?
GE Healthcare
GB
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);
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);
}"
GE Healthcare
GB
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!
Pegasystems Inc.
IN
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.
GE Healthcare
GB
Hi Lochan
The SR number for this fix is:SR-B2686
Thanks
Pegasystems Inc.
IN
Thanks Jack!
I've updated your post above to reflect this information.
Regards,
Lochan | Community Moderator | Pegasystems Inc.
Accepted Solution
Pegasystems Inc.
IN
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.