Hi, I am using saxon 9.1.7. My xml file has a DTD reference to a secure server
and requires a user name and password. Saxon throws the following error.
java.io.IOException: Server returned HTTP response code: 401 for URL:
I searched the Saxon Documents for a command line instruction to pass the
username and password. Both my stylesheet and xml files are stored locally,
but its the external call from the parser thats giving me the issue.
You will need to associate an EntityResolver with the XML parser to achieve
this. Unless the DTD really is secure, its probably better to redirect the
request to a local (insecure) copy rather than trying to pass credentials with
the HTTP request. You can do this by using catalogs as an alternative to
writing your own EntityResolver.
Much Thanks. I will give it a try
Log in to post a comment.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.