HI Guys, I need to obtain a token from a security web page:
Reference for https://aest-segu56/ERPMWebService/JSON/V2/AuthService.svc/DoLogin2
Login and create an authentication token returned as a JSON object
Url: https://aest-segu56/ERPMWebService/JSON/V2/AuthService.svc/DoLogin2
HTTP Method: POST
The following is an example request Xml body:
<LoginInfo xmlns="http://schemas.datacontract.org/2004/07/RouletteAppService_WCF"> <Authenticator>String content</Authenticator> <LoginType>Unknown</LoginType> <MFATokenCode>String content</MFATokenCode> <OnBehalfOfUser> <Username>String content</Username> </OnBehalfOfUser> <Password>String content</Password> <SAMLAudience>String content</SAMLAudience> <SAMLCert>String content</SAMLCert> <SAMLDomainGroups>String content</SAMLDomainGroups> <SAMLDomainUsers>String content</SAMLDomainUsers> <SAMLIssuer>String content</SAMLIssuer> <SAMLResponse>String content</SAMLResponse> <SAMLRoles>String content</SAMLRoles> <SAMLSubject>String content</SAMLSubject> <Username>String content</Username> </LoginInfo>
The data to send is the following:
{
"LoginType":1,
"Password":"Password-de-usuario",
"Username":"usuario"
}
I tried using the REST OPERATION ACTION ( I don't understand where to insert the parameters). I got 400 Bad Request Error.
Did anyone use this before?
Thanks.