|
|
|
date: Wed, 23 Apr 2008 12:24:42 +0800,
group: microsoft.public.xml
back
Re: MSXML2.XMLHTTP usable under asynchronous pluggable protocol?
>
> I would like to know if it's possible to use MSXML2.HTTP at all on APPs?
> If so, what should I do to find the cause of this access denied error?
> Thanks.
>
> --
I'm getting somewhere. In IInternetProtocolInfo::ParseUrl, I mapped my
protocol to http during the PARSE_SECURITY_DOMAIN parse action. Now the
access denied error went away.
But another problem rises up. The call of "r.send();" never returns. I
trapped IInternetProtocol::Read and IInternetProtocolRoot::Start . It looks
like they are both working okay. In Start(), I put the following procedures:
pIProtSink->ReportProgress(BINDSTATUS_FINDINGRESOURCE, L"");
pIProtSink->ReportProgress(BINDSTATUS_CONNECTING, L"");
pIProtSink->ReportProgress(BINDSTATUS_SENDINGREQUEST, L"");
pIProtSink->ReportProgress(BINDSTATUS_VERIFIEDMIMETYPEAVAILABLE,
L"text/xml");
pIProtSink->ReportData(BSCF_FIRSTDATANOTIFICATION, 0, m_contentsize);
pIProtSink->ReportData(BSCF_LASTDATANOTIFICATION | BSCF_DATAFULLYAVAILABLE,
m_contentsize, m_contentsize);
In Read(), I discovered that it's called twice, with requesting size(cb) set
to 4096. First call, I used memcpy to copy this content "<?xml
version=\"1.0\"?><something></something>" to the output buffer. In the next
call, I returned S_FALSE.
Everything seemed normal, but "r.send();" never returned. What can be the
cause of this problem?
Thanks,
Bill Holt
date: Wed, 23 Apr 2008 14:50:09 +0800
author: Bill Holt mailbill(NOSPAM)@21cn.com.nospam
|
|