Problem with XLMDocument DTD verification

Home Page Forums BizTalk 2004 – BizTalk 2010 Problem with XLMDocument DTD verification

Viewing 1 reply thread
  • Author
    Posts
    • #19695

      Hello,

      i’m having somes problems with a simple orchestration where i read an XML attachment from a POP3 adatper.

      I’m able to receive the xlm and keep it in a message of type xmlDocument but when i try to convert to string, using xmlDocument.OuterXML i get the error ‘404 Not Found’. The problem here is in the proxy i’m using.. i think… that it isn’t able to access the DTD present in the xml attachment.

       

      My question is.. is there anyway i can prevent the DTD validation after i have the xmlDocument message created?

      i have tried testing the xmlResolver = null but it seems to work only before loading a xml into a xmlDocument (i tried it in a small test project).

       

      Anyone has any ideas?

      thanks!

    • #19708

      I assume your code looks something like this:

      xmlDocument = inputMessage;
      stringVariable = xmlDocument.OuterXml;

      The first line above is where the XmlDocument is loaded.

      Have you tried

      xmlDocument.XmlResolver = null;
      xmlDocument = inputMessage;
      stringVariable = xmlDocument.OuterXml;

      • #19759

        hey
        i tried that but it doesnt work.

         

        The solution i found, after having googled a while, was to create a custom pipeline to remove the DOCTYPE declaration.

        Found this on this link.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.