Martin,
I have used Xerces to parse an XML Buffer which I have read from an IIS
server (using WinInet code - based on HeadDump.CPP sample in the microsoft
site) and have also been able to do an XML parse using Xerces directly. So
the problem must be either with your permissions on your webserver or a
problem in your code. Here is the segment of code using the Xerces parse
directly:
parser = new SAXParser;
parser->setDocumentHandler(&handler);
parser->setErrorHandler(&handler);
parser->setValidationScheme(valScheme);
parser->setDoNamespaces(doNamespaces);
parser->setDoSchema(doSchema);
parser->setValidationSchemaFullChecking(schemaFullChecking);
XMLURL *url = NULL;
URLInputSource *inputSrc = NULL;
url = new XMLURL("http://localhost/test.xml");
inputSrc = new URLInputSource(*url);
parser->parse(*inputSrc);
hope this helps,
Cam
-----Original Message-----
From: Martin Sch�fer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 8 October 2002 1:19 AM
To: [EMAIL PROTECTED]
Subject: Impossible to download xml with xerces from Microsoft IIS?
Hi,
I have MS IIS installed on my machine and try to use xerces to parse an xml
document that is served by IIS.
Judging from what I've seen in the debugger it seems that the xerces request
is always responded to by IIS with a "401 Unauthorized" message. I tried out
different Authentication methods in the IIS "Directory Security" property
tab, but I always get 401.
Is it impossible to get a correct response from IIS with xerces? If not,
what do I have to do to get the desired result?
Any help appreciated.
Regards,
Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]