This function is used to connect to the MVSP Server.


Namespace: rocketsoftware.MVSP
Assembly: RocketMVSP (in RocketMVSP.dll)

Syntax

Visual Basic (Declaration)
Public Function ConnectWcf( _ 
   ByVal hostName As String,  _ 
   ByVal hostPort As Integer,  _ 
   ByVal userName As String,  _ 
   ByVal userPassword As String,  _ 
   ByVal opContext As Object,  _ 
   ByVal sslConnect As Boolean _ 
) As Boolean
C#
public bool ConnectWcf(
   string hostName,
   int hostPort,
   string userName,
   string userPassword,
   object opContext,
   bool sslConnect
)
C++
public:
 bool ConnectWcf(
   String hostName,
   int hostPort,
   String userName,
   String userPassword,
   Object opContext,
   bool sslConnect
) sealed 
J#
public bool ConnectWcf(
   string hostName,
   int hostPort,
   string userName,
   string userPassword,
   object opContext,
   bool sslConnect
)
JScript
public  function ConnectWcf(
   hostName : String,
   hostPort : int,
   userName : String,
   userPassword : String,
   opContext : Object,
   sslConnect : bool
) : bool

Parameters

hostName
is a string containing the hostname or TCP/IP address to connect to
hostPort
is an integer containing the TCP/IP socket that the host server is listening on
userName
is a string containing the user name that you wish to connect as. The username must be an enabled MVSP user.
userPassword
is a string containing the password for the supplied username
opContext
is an object containing the WCF current operation context
sslConnect
is a boolean indicating use of SSL connection (true) or telnet connection (false)

Return Value

True is a connection has been created

Remarks

Sets statusMessage and statusCode properties
The d3wcfhelper.dll must be installed in the same directory as rocketmvsp.dll.
The following example will connect using telnet to localhost on port 9000 and logon as user dm with no password

 Copy Code
 Dim returncode as boolean
 Dim mvsp as new rocketsoftware.MVSP.Pick
 returncode = mvsp.ConnectWcf("localhost",9000,"dm","",opContext,False)
 

See Also