See also Authenticating in Workgroups Portal
The following code snippet shows how to authenticate in the Application Server with Basic Authentication using SOAP service endpoint from .NET.
You need to add Service Reference pointed to the Application Server Authenticate Service address. This example uses http://example.com/workgroups/database/~ws/metacomm/auth in place of the actual URL.