Click here to Skip to main content
15,884,298 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to set root directory in GetOpenFileName() dialog Pin
Hamid_RT12-May-07 7:28
Hamid_RT12-May-07 7:28 
Generalit is not Pin
zhongwenjia12-May-07 15:24
zhongwenjia12-May-07 15:24 
AnswerRe: How to set root directory in GetOpenFileName() dialog Pin
Gary R. Wheeler13-May-07 2:47
Gary R. Wheeler13-May-07 2:47 
Questionregarding speed of the internet Pin
sudhir.marni12-May-07 6:13
sudhir.marni12-May-07 6:13 
AnswerRe: regarding speed of the internet Pin
Hans Dietrich12-May-07 10:57
mentorHans Dietrich12-May-07 10:57 
QuestionGet Name from IP Address Pin
vikrant kpr12-May-07 6:06
vikrant kpr12-May-07 6:06 
AnswerRe: Get Name from IP Address Pin
Vadim Tabakman12-May-07 15:18
Vadim Tabakman12-May-07 15:18 
QuestionUsing an Apache Axis web service from C++ client Pin
Andy H12-May-07 4:32
Andy H12-May-07 4:32 
I need to send an XML document to a web service running Apache Axis. I have been attempting to POST it using XMLHTTP:

HRESULT hr = CoInitialize(NULL);<br />
...<br />
IServerXMLHTTPRequestPtr pXMLHTTPReq = NULL;<br />
hr = pXMLHTTPReq.CreateInstance(__uuidof(ServerXMLHTTP40));<br />
hr = pXMLHTTPReq->open( _bstr_t("POST"), bstrURL, _variant_t(VARIANT_FALSE) );<br />
CComBSTR xmlString;<br />
m_spXMLDoc->get_xml( &xmlString );  // m_spXMLDoc already loaded with XML<br />
hr = pXMLHTTPReq->setRequestHeader(_bstr_t("Content-Type"), _bstr_t("text/xml; charset=utf-8"));<br />
hr = pXMLHTTPReq->setRequestHeader(_bstr_t("SOAPAction"), _bstr_t(""));<br />
hr = pXMLHTTPReq->send( (_variant_t)xmlString );<br />
long status = pXMLHTTPReq->Getstatus();<br />
_bstr_t bstrResponse = pXMLHTTPReq->GetresponseText();<br />
...


Before I added the line:

hr = pXMLHTTPReq->setRequestHeader(_bstr_t("SOAPAction"), _bstr_t(""));

I was connecting but getting a No Soap Action error. But having added ths line when execution tries to run at that line it raises an exception. I would appreciate any advice anyone can give me on how I can POSt xml through to an Apache Axis web service successfully.
QuestionOwner drawn context menu Pin
Neeraj Sinha12-May-07 4:29
Neeraj Sinha12-May-07 4:29 
AnswerRe: Owner drawn context menu Pin
Mark Salsbery12-May-07 5:06
Mark Salsbery12-May-07 5:06 
AnswerRe: Owner drawn context menu Pin
Hamid_RT12-May-07 5:52
Hamid_RT12-May-07 5:52 
QuestionStatic Text Control Wordwrap Pin
daveyerwin12-May-07 3:38
daveyerwin12-May-07 3:38 
AnswerRe: Static Text Control Wordwrap Pin
Mark Salsbery12-May-07 6:11
Mark Salsbery12-May-07 6:11 
GeneralRe: Static Text Control Wordwrap Pin
Rick York12-May-07 7:21
mveRick York12-May-07 7:21 
AnswerRe: Static Text Control Wordwrap Pin
Gary R. Wheeler13-May-07 2:50
Gary R. Wheeler13-May-07 2:50 
QuestionMicrosoft Speech SDK Pin
smzhaq12-May-07 2:48
smzhaq12-May-07 2:48 
QuestionHow to show CTcxMsgbox and buttons in a different color [modified] Pin
Cyber Friend12-May-07 2:45
Cyber Friend12-May-07 2:45 
QuestionRe: How to show CTcxMsgbox and buttons in a different color Pin
Hamid_RT12-May-07 6:03
Hamid_RT12-May-07 6:03 
AnswerRe: How to show CTcxMsgbox and buttons in a different color Pin
Mark Salsbery12-May-07 6:27
Mark Salsbery12-May-07 6:27 
GeneralRe: How to show CTcxMsgbox and buttons in a different color Pin
Cyber Friend14-May-07 1:13
Cyber Friend14-May-07 1:13 
QuestionMouseover Pin
prathuraj12-May-07 2:41
prathuraj12-May-07 2:41 
AnswerRe: Mouseover Pin
Hans Dietrich12-May-07 3:04
mentorHans Dietrich12-May-07 3:04 
AnswerRe: Mouseover Pin
jk chan12-May-07 5:28
jk chan12-May-07 5:28 
GeneralRe: Mouseover Pin
Mark Salsbery12-May-07 6:14
Mark Salsbery12-May-07 6:14 
QuestionCListCrtl like in task manager Pin
Cedric Moonen12-May-07 2:25
Cedric Moonen12-May-07 2:25 

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.