Hi All,
I’m currently using a custom authentication method where we pass the username and password in the body to generate a token. At the moment, these values are hardcoded in the request body.
Is there a way to pass in the credentials without hardcoding them?
Below is the SOAP body I’m currently sending:
xml
CopyEdit
<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">http://www.xyz.com/xyz/Api/1.0/ISecurity/Login</a:Action>
<a:MessageID>urn:uuid:c787cb81-fa72-4393-a934-bb438e16ee00</a:MessageID>
<a:ReplyTo>
<a:Address>http://www.w3.org/2005/08/addressing/anonymous</a:Address>
</a:ReplyTo>
<a:To s:mustUnderstand="1">https://xyz/xyz/Security.svc</a:To>
</s:Header>
<s:Body>
<Login xmlns="http://www.xyz.com/xyz/Api/1.0">
<input xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<ApplicationID>1043</ApplicationID>
<Password>122345436</Password>
<Uri i:nil="true"/>
<UserName>service_User</UserName>
</input>
</Login>
</s:Body>
</s:Envelope>