WEBWebUserValidateLogin_Custom
| Initial Build | 2008.01 |
| xWeb | Web Method |
| Response Type | string |
The WEBWebUserValidateLogin Custom web method is similar to WEBWebUserValidateLogin except that instead of returning a WebUserType, the method returns the numeric customer ID.
Parameters
The request has the following required parameters:
| Name | Type | Occurs | Description |
|---|---|---|---|
| LoginOrEmail | string | 0(R)..1 | The username or email address. |
| password | string | 0(R)..1 | The clear text password. |
Response
String—This method returns the numeric customer ID.
Sample Request
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.avectra.com/2005/">
<soapenv:Header>
<ns:AuthorizationToken>
<ns:Token>2aff28bb-29e5-452b-91e6-f8456b15969e</ns:Token>
</ns:AuthorizationToken>
</soapenv:Header>
<soapenv:Body>
<ns:WEBWebUserValidateLogin>
<ns:LoginOrEmail>bsmith</ns:LoginOrEmail>
<ns:password>123</ns:password>
</ns:WEBWebUserValidateLogin>
</soapenv:Body>
</soapenv:Envelope>
Sample Response
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Header>
<AuthorizationToken xmlns="http://www.avectra.com/2005/">
<Token>2aff28bb-29e5-452b-91e6-f8456b15969e</Token>
</AuthorizationToken>
</soap:Header>
<soap:Body>
<WEBWebUserValidateLoginResponse xmlns="http://www.avectra.com/2005/">
<WEBWebUserValidateLoginResult>82896</WEBWebUserValidateLoginResult>
</WEBWebUserValidateLoginResponse>
</soap:Body>
</soap:Envelope>
JSON Method
POST /xWeb/JSON/WEBWebUserValidateLogin_Custom
DATA: JSON
{
"WEBWebUserValidateLogin_Custom": {
"LoginOrEmail": "{{emlAddressWebUserCreate}}",
"password" : "{{passwordWebUserCreate}}"
}
}
SAMPLE RESULT
HTTP STATUS: 200
DATA: JSON
7006