Plumtree EDK (Enterprise Web Development Kit) 5.4.0

RemoteSessionFactory.GetExplicitLoginContext Method (Uri, String, String)

Returns an IRemoteSession with the same security context in the portal as the specified user. The session is valid for 10 minutes.

public static IRemoteSession GetExplicitLoginContext(
   Uri endpoint,
   string username,
   string password
);

Parameters

endpoint
the SOAP endpoint of the WS portal (ptapi). For example, a Java WS portal installation might use http://hostname:port/ptapi/services/QueryInterfaceAPI while a .NET WS portal might use http://hostname:port/ptapi/QueryInterfaceAPI.asmx. These endpoints will vary according to the deployment.
username
the username whose security context to use
password
the user's password

Return Value

an IRemoteSession object representing the current session with the portal

Exceptions

Exception Type Condition
PortalException if the operation resulted in an error on the portal
HttpException if the endpoint URL is not valid

See Also

RemoteSessionFactory Class | Plumtree.Remote.PRC Namespace | RemoteSessionFactory.GetExplicitLoginContext Overload List