Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. MS-SOAP Toolkit v3.0 & HTTPS?

MS-SOAP Toolkit v3.0 & HTTPS?

Scheduled Pinned Locked Moved C / C++ / MFC
c++wcfregexxml
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    Nirav Doshi
    wrote on last edited by
    #1

    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 the https:// to http:// - 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! *

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups