Close popover
Marc de Boer (Marcd559)

Marcd559 Member since 2015 3 posts
Posted: November 22, 2016
Last activity: December 2, 2016

Set Proxy Settings in Child thread when calling connectors in parallel

In our main thread we need to set the proxy before we call a Connect-Soap rule. This is because our proxy server is whitelisted on the soap server we are trying to reach. The proxy settings are being set by creating the pyProxySettingsForSOAP page and configuring the proxy hostname and credentials on it. The InvokeAxis2 activity checks the existance of this pyProxySettingsForSOAP page and if so, uses these configured proxy settings.

This works fine as long as we call the Soap Service with ExecuteMode Run. However we want to change this so that we call the Connect-Soap rule with ExecuteMode RunInParallel. But then Pega will create a child thread and call InvokeAxis2 in this child thread. However the child thread does not have the pyProxySettingsForSOAP page in his context, so the Soap call will not run through the proxy. As a consequence within the Soap cal the ip-address of the Application Server is used instead of the ip-address of the proxy server, and this will lead to a "Unauthorised" errorcode. 

So how can I set the pyProxySettingsForSOAP page in the child thread? Or can I pass this from the main thread just like the Access Group is passed?

Thanks, Marc de Boer

***Updated by moderator: Lochan to add enhancement details***

Data Integration Java and Activities
Moderation Team has archived post,
Close popover This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.