| 
 Sets an identity for the current context. 
The identity is used by the Invoke Web S operation when the SOAP service's Security level is set to Transport or WS-Security. 
 | 
| 
 Syntax: 
 | 
 WsSetIdentity (Identity, Password) 
 | 
| 
 Parameters: 
 | 
 Identity & Password – Alphanumeric – an identity (and password) that will be used for all subsequent ‘Invoke web s’ calls (until the function is called again). 
 | 
| 
 Returns: 
 | 
 Alphanumeric – the previous identity set for the context. 
 | 
| 
 Note: 
 | 
 The initial identity (before calling this function) is the Magic xpa logged-in username, or the username passed with the request. 
 | 
| 
 Example: 
 | 
 Virtual A Alpha 30 Update  A   WsSetIdentity (‘ws-user-1’, ‘ws-user-pass’) … WsSetIdentity (A) 
 | 
| 
 See also: 
 | 
 How Do I Securely Access a Web Service? 
 |