New-WebServiceProxy

This forum can be browsed by the general public. Posting is limited to current SAPIEN license holders with active maintenance and does not offer a response time guarantee.
Forum rules
DO NOT POST LICENSE NUMBERS, ACTIVATION KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.

Any code longer than three lines should be added as code using the 'Select Code' dropdown menu or attached as a file.
This topic is 11 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
User avatar
ceberly
Posts: 20
Last visit: Mon Aug 07, 2023 1:50 pm

New-WebServiceProxy

Post by ceberly »

Getting the dreaded 407 proxy authentication error when using webserviceproxy in Powershell Studio 2012. The way around this for powershell.exe and powershell_ise.exe is modify the powershell.exe.config and and or powershell_ise.exe.config to include




How can this be done for Powershell Studio?
User avatar
ceberly
Posts: 20
Last visit: Mon Aug 07, 2023 1:50 pm

New-WebServiceProxy

Post by ceberly »

Sorry, text did now show up. You need to add

defaultProxy useDefaultCredentials="true"

in the config files.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

New-WebServiceProxy

Post by davidc »

PowerShell Studio doesn't have a config file. If you are running scripts within PowerShell Studio then you will need to modify the script driver config files:

C:Program Files (x86)Common FilesSAPIEN Debugger 2012

Though, we typically we don't recommend altering the config files.

David
David
SAPIEN Technologies, Inc.
User avatar
ceberly
Posts: 20
Last visit: Mon Aug 07, 2023 1:50 pm

New-WebServiceProxy

Post by ceberly »

Thanks David. I really would like to find a better way, but the webserviceproxy object offers no mechanism to configure a proxy so this is the only way I have figured out how to access a webservice on the other side of the proxy.
This topic is 11 years and 2 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.