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. VC++ https

VC++ https

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++asp-nethelptutorial
3 Posts 2 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.
  • M Offline
    M Offline
    mohindar_kks
    wrote on last edited by
    #1

    Hi, am sundar.I have one doubt in vc++.How to connect the https web service in vc++?The webservice was developed in vc++.I have connected http site in vc++ and it was working.When i connect the https site,it displays the error in the screen. I have done in asp.net.Its working fine.Please let me know what are the procedures to follow to connect the https site in vc++. Anyhelp would be appreciated. Regards, R.Sundar

    T 1 Reply Last reply
    0
    • M mohindar_kks

      Hi, am sundar.I have one doubt in vc++.How to connect the https web service in vc++?The webservice was developed in vc++.I have connected http site in vc++ and it was working.When i connect the https site,it displays the error in the screen. I have done in asp.net.Its working fine.Please let me know what are the procedures to follow to connect the https site in vc++. Anyhelp would be appreciated. Regards, R.Sundar

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      What type of request do you want to sent to webservice, i mean GET/POST or something else

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
      Never mind - my own stupidity is the source of every "problem" - Mixture

      cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

      M 1 Reply Last reply
      0
      • T ThatsAlok

        What type of request do you want to sent to webservice, i mean GET/POST or something else

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
        Never mind - my own stupidity is the source of every "problem" - Mixture

        cheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You

        M Offline
        M Offline
        mohindar_kks
        wrote on last edited by
        #3

        m using the 'Post type.am attaching the code.Please verify.The http is working in same code.Is there any credentials to pass the code? HTTPMethod = _bstr_t( "POST" ); httpReq->open(HTTPMethod ,"https://gtl-334/XmlTesting/Service.asmx",noAsync,vUser,vPassword); httpReq->setRequestHeader("Content-Type", "application/soap+xml"); CString szRequest;// = "<strUserName>"; //szRequest += "chaitanya"; //szRequest +="</strUserName>"; szRequest = "<?xml version=\"1.0\" encoding=\"utf-8\"?> \ <soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\\" xmlns:soap12=\"http://www.w3.org/2003/05/soap-envelope\\"> \ <soap12:Body>\ <RetrieveKey xmlns=\"http://tempuri.org/\\"> \ <serial>1001</serial>\ </RetrieveKey>\ </soap12:Body>\ </soap12:Envelope>"; //szRequest = "Chaitanya"; VARIANT vRequest; vRequest.vt = VT_BSTR; vRequest.bstrVal = szRequest.AllocSysString(); httpReq->send(vRequest); BSTR strText; _bstr_t bsResponse = httpReq->responseText;

        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