on 03-18-2024 2:33 PM
I am getting the following error and have confirmed I am using the correct creds and those creds have to appropriate premissions.
<error_code>RWS 000079</error_code>\r\n <message>Enter a valid input (RWS 000079)</message>\r\n</error>\r\n'
After successfully using a request.get to the base url with /logon/long I am attempting the post for my logon token with the following logic: (the line break text not being passed to the login_data url)
login_url = f'http://{localhost}:{port}/biprws/logon/long'
login_data = f'<attrs xmlns="http://www.sap.com/rws/bip"><attr name={password} type="string"> \line break
</attr><attr name="clientType" type="string"></attr><attr name="auth" type="string"> \line break
possibilities="secEnterprise,secLDAP,secWinAD,secSAPR3">secEnterprise</attr><attr name={user_name} type="string"></attr></attrs>'
login_headers = {
'Accept': 'application/xml',
'Content-Type': 'application/xml'
}
# send the login request and retrieve the response
login_response = requests.post(login_url, headers=login_headers, data=login_data)
Can anyone help identify what's formatted incorrectly?
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.