MS Soap With SSL Problem
Toanstt <[email protected]> Thu, 27 Feb 2003 00:38:04 -0800
| Newsgroups | gmane.comp.windows.devel.soap.general |
|---|---|
| Message-ID | <SOAP%[email protected]> |
Hi everyone !
I'm facing a problem and need your help.
If My client connect Soap Server through HTTP (not using SSL) everything
is fine, but it's not ok when connecting by https with this error message
"Client - WSDLReader:Loading of the WSDL file failed HRESULT=0x80070057 -
WSDLReader:XML Parser failed at linenumber 0, lineposition 0, reason is: A
security problem occurred."
My source code :
if (CreateDispatch(_T("MSSOAP.SoapClient"),&error))
{
// Exception here....
static BYTE parms[] =
VTS_BSTR VTS_BSTR VTS_BSTR VTS_BSTR;
InvokeHelper(0x1, DISPATCH_METHOD, VT_EMPTY,
NULL, parms,
"https://host/dir/ServiceName.wsdl", "",
"", "");
VARIANT _vValue;
_vValue.vt = VT_BOOL;
_vValue.boolVal = VARIANT_TRUE;
setConnectorProperty(_T("UseSSL"),_vValue);
}
Method setConnectorProperty :
.....
boolean _blRet = true;
CString szErrorDesc;
try
{
static BYTE parms[] =
VTS_BSTR VTS_VARIANT;
InvokeHelper(0x60020008, DISPATCH_PROPERTYPUT, VT_EMPTY, NULL,
parms,
PropertyName, &newValue);
}
catch(COleDispatchException* _pEx)
{
TCHAR buffer[255];
_pEx->GetErrorMessage(buffer,255);
szErrorDesc.Format(_T("COleDispatchException : %s"),buffer);
m_pLogger->error(szErrorDesc);
_blRet = false;
}
.......
Thanks for your help.
Toanstt
You can read messages from the SOAP archive, unsubscribe from SOAP, or
subscribe to other
DevelopMentor lists at http://discuss.develop.com.
You can read messages from the SOAP archive, unsubscribe from SOAP, or subscribe to other
DevelopMentor lists at http://discuss.develop.com.