VC++ https
-
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
-
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
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
-
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" - Mixturecheers, Alok Gupta VC Forum Q&A :- I/IV Support CRY- Child Relief and You
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;