MS-SOAP Toolkit v3.0 & HTTPS?
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi, With SOAP TK 3.0 I'm trying the following:
ISoapConnectorPtr psmConnector = NULL; ISoapSerializerPtr psmSerializer = NULL; ISoapReaderPtr psmReader = NULL; ///--------------------------------------- psmConnector.CreateInstance(__uuidof(HttpConnector30)); psmConnector->Property["EndPointURL"] = _bstr_t("https://172.16.1.95/WebServices/ws1/Service1.asmx"); psmConnector->Connect(); ///--------------------------------------- psmConnector->Property["SoapAction"] = _bstr_t("https://172.16.1.95/WebServices/ws1/HelloWorld"); psmConnector->Property["UseSSL"] = VARIANT_TRUE; psmConnector->Property["SSLClientCertificateName"] = _bstr_t("CURRENT_USER\\MY"); ///--------------------------------------- psmConnector->BeginMessage(); psmSerializer.CreateInstance(__uuidof(SoapSerializer30)); psmSerializer->Init(_variant_t((IUnknown *) psmConnector->InputStream)); psmSerializer->StartEnvelope(_bstr_t(""), _bstr_t("STANDARD"), _bstr_t("")); psmSerializer->StartBody(_bstr_t("STANDARD")); psmSerializer->StartElement(_bstr_t("HelloWorld"), _bstr_t("https://172.16.1.95/WebServices/ws1/"), _bstr_t(""), _bstr_t("")); psmSerializer->EndElement(); psmSerializer->EndBody(); psmSerializer->EndEnvelope(); psmConnector->EndMessage(); // throws an exception here! :( ///---------------------------------------
But this is NOT working & throws an exception at
psmConnector->EndMessage()
! :(:doh: If I change thehttps://
tohttp://
- it works like a charm! Anyone has any links where we can have some good VC++ (MFC) samples with SOAP TK 3.0? (And if possible, using the low level SOAP API!) :doh: Thanks! - Nirav * Artificial intelligence is no match for natural stupidity! *