Hello

All big companies open SOAP port only when using SSL

This means that my programm MUST be able to use SSL

I would hope that this is simply setting one more switch when starting
communication with SOAP !

Sou i jost add this string
if (Settings[GlobalVars.gw_srv_ssl].Equals("1")) { str =
"https://"; } else { str = "http://"; }


i'm used

public bool LoginToGW(string GWName1, string GWUser1, string GWPort1,
string GWPass1)
{//if (LoginToGW(GWName,GWUser,GWPort,GWPass)
ws = null;

String str = "";
GWReference.loginRequest req = new
GWReference.loginRequest();
GWReference.loginResponse resp;
GWReference.PlainText pt = new GWReference.PlainText();

ws = new GWReference.GroupWiseBinding();


if (Settings[GlobalVars.gw_srv_ssl].Equals("1")) { str =
"https://"; } else { str = "http://"; }
str += GWName1;
str += ":";
str += GWPort1;

str += "/soap";

ws.Url = str;

pt.username = GWUser1;
pt.password = GWPass1;
req.auth = pt;

try
{
resp = ws.loginRequest(req);

if (0 == resp.status.code)
{
ws.session = new GWReference.@string();
ws.session.Text = new String[1];
ws.session.Text[0] = resp.session;
ws = null;
return true;

}
}
catch (Exception e)
{
msgStatus = e.Message;
ws = null;
}
}

But after resp = ws.loginRequest(req); i resive Exception
"The underlying connection was closed: Could not establish trust
relationship for the SSL/TLS secure channel."

Can you help me???


Kirill