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***
**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.
This was identified as an enhancement to the product and a request item (listed in the Related Support Case Number filed above) has been created.
Lochan | Community Moderator | Pegasystems Inc.
Keep up to date on this post and subscribe to comments