cancel
Showing results for 
Search instead for 
Did you mean: 

Enter a valid input (RWS 000079)

T1me2
Newcomer
0 Kudos

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?

Accepted Solutions (0)

Answers (0)