Using New-WebServiceProxy to connect into SAP ES via PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Proxy variables | |
$username = "xxxxxxx" | |
$password = "*******" | |
$uriUserManagement = "http://servername/sap/bc/srt/wsdl/../../../../zfimconnector_user?sap-client=100" | |
$uriUserManagementClass = "SAP_WSDL" | |
$uriUserManagementNamespace = "SAP" | |
# Create secure credential | |
$secpasswd = ConvertTo-SecureString $password -AsPlainText -Force | |
$credential = New-Object System.Management.Automation.PSCredential ($username, $secpasswd) | |
# Create web services proxy object | |
$proxyUser = New-WebServiceProxy -Uri $uriUserManagement -Credential $credential -Class $uriUserManagementClass -Namespace $uriUserManagementNamespace |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment