Click here to Skip to main content
15,917,328 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: LPTSTR? Pin
badsmonkey21-Oct-03 5:55
badsmonkey21-Oct-03 5:55 
GeneralRe: LPTSTR? Pin
David Crow21-Oct-03 8:14
David Crow21-Oct-03 8:14 
GeneralRe: LPTSTR? Pin
badsmonkey21-Oct-03 9:03
badsmonkey21-Oct-03 9:03 
GeneralRe: LPTSTR? Pin
David Crow21-Oct-03 9:40
David Crow21-Oct-03 9:40 
GeneralRe: LPTSTR? Pin
Michael Dunn21-Oct-03 9:26
sitebuilderMichael Dunn21-Oct-03 9:26 
GeneralHi ! How can we call .Net Web Service method from C++ Client Pin
Abhishek Avasthi21-Oct-03 4:56
Abhishek Avasthi21-Oct-03 4:56 
GeneralRe: Hi ! How can we call .Net Web Service method from C++ Client Pin
Xiangyang Liu 刘向阳21-Oct-03 5:13
Xiangyang Liu 刘向阳21-Oct-03 5:13 
GeneralRe: Hi ! How can we call .Net Web Service method from C++ Client Pin
igor196021-Oct-03 11:42
igor196021-Oct-03 11:42 
You may try something like that, assuming your Soap request envelope is stored in lpcsSoapEnvelopeFileXML:

	MSXML2::IXMLDOMDocument2Ptr       request(__uuidof(MSXML2::DOMDocument30));<br />
	BOOL                              bretval;<br />
<br />
	request->async = false;<br />
	bretval = request->load(lpcsSoapEnvelopeFileXML);<br />
	if(bretval)<br />
	{<br />
		MSXML2::IXMLHTTPRequestPtr  serv (__uuidof(MSXML2::XMLHTTP30));<br />
		serv->open ("POST",lpcsURL, false);<br />
		serv->setRequestHeader ("Content-Type", "text/xml; charset=utf-8");<br />
		serv->setRequestHeader ("SOAPAction", lpcsFuncURL);<br />
		serv->send (_variant_t(request->xml));<br />
<br />
	        MSXML2::IXMLDOMDocument2Ptr        response;<br />
		response = serv->responseXML;<br />
	<br />
		csResponce = (LPCSTR)serv->responseText;<br />
	}<br />
	return csResponce;


On return you have to parse csResponce text or response XML...



"...Ability to type is not enough to become a Programmer. Unless you type in VB. But then again you have to type really fast..."
Me
GeneralRe: Hi ! How can we call .Net Web Service method from C++ Client Pin
Abhishek Avasthi23-Oct-03 2:10
Abhishek Avasthi23-Oct-03 2:10 
GeneralRe: Hi ! How can we call .Net Web Service method from C++ Client Pin
Abhishek Avasthi23-Oct-03 2:10
Abhishek Avasthi23-Oct-03 2:10 
Questionwhere i can find the protocol of mms? Pin
coolcarlos21-Oct-03 4:02
coolcarlos21-Oct-03 4:02 
Questionwhere can i find the protocol of mms? Pin
coolcarlos21-Oct-03 4:01
coolcarlos21-Oct-03 4:01 
AnswerRe: where can i find the protocol of mms? Pin
David Crow21-Oct-03 8:17
David Crow21-Oct-03 8:17 
GeneralInclude directories - Visual C++ - Pin
Anonymous21-Oct-03 3:41
Anonymous21-Oct-03 3:41 
GeneralRe: Include directories - Visual C++ - Pin
Steve S21-Oct-03 5:36
Steve S21-Oct-03 5:36 
GeneralRe: Include directories - Visual C++ - Pin
Atif Mushtaq21-Oct-03 23:37
Atif Mushtaq21-Oct-03 23:37 
GeneralRe: Include directories - Visual C++ - Pin
Anonymous22-Oct-03 22:13
Anonymous22-Oct-03 22:13 
QuestionStringReader and XmlTextReader MFC equivalents? Pin
LukeV21-Oct-03 3:07
LukeV21-Oct-03 3:07 
GeneralDebug Assert Pin
SamirSood21-Oct-03 2:57
SamirSood21-Oct-03 2:57 
GeneralRe: Debug Assert Pin
David Crow21-Oct-03 8:24
David Crow21-Oct-03 8:24 
GeneralRe: Debug Assert Pin
Neville Franks21-Oct-03 10:07
Neville Franks21-Oct-03 10:07 
GeneralRe: Debug Assert Pin
SamirSood21-Oct-03 18:08
SamirSood21-Oct-03 18:08 
GeneralCFile problem Pin
Shah Shehpori21-Oct-03 2:48
sussShah Shehpori21-Oct-03 2:48 
GeneralRe: CFile problem Pin
Joe Woodbury21-Oct-03 5:04
professionalJoe Woodbury21-Oct-03 5:04 
GeneralRe: CFile problem Pin
John R. Shaw21-Oct-03 17:38
John R. Shaw21-Oct-03 17:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.