Invalid Characters in XML

Home Page Forums BizTalk 2004 – BizTalk 2010 Invalid Characters in XML

Viewing 1 reply thread
  • Author
    Posts
    • #23962

      Hi ..

      this is my Orchestration description:

      1- reciving XML using File Adapter

      2- Construct Message to add HTTP Headers:

      MessageEnd = MessageORA;

      MessageEnd(*)= MessageORA(*);

      MessageEnd(HTTP.ContentType)= “Content-Type: application/octet-stream; charset=UTF-8”;

      MessageEnd(HTTP.UserHttpHeaders)= “sender-id: 074\r\nrquid: B95FC326-974B-4F9D-A99A-CD76FF586039\r\n”;

      3- send MessageEnd to HTTP adapter

      4- reciving response from my client

      5- send the response to File Adapter

      ===========================================

      every thing gose fine but i keep geting An internal error from my client .

      after analizing the XML doc that i’ve sent it appears that the XML doc have an invalid character on to of it befor even the headers …

      i been trying to find a salution to this issue but no luck ..

      can any one help me please

      Thank You

       

    • #23964

      Hi,

       

         To troubleshoot this error, in your Orchestration, after you build your message MessageEnd, create a Send port in your flow to output this message to a file and see the contents of this message to figure out what invalid character is causing your client to return this error message.

       

         Good luck,

       

         Daniel.

      • #23969

        it appears that Biztalk is placing ? character on top of my message

        • #23971

          after using Fiddler2 my file looks this:

          ???                                                                                              //i don’t know from where did this character came !!!!

          Content-Type: text/xml; charset=utf-8

          sender-id: 0567

          rquid: B95FC326-974B-4F9D-A99A-CD76FF586055

          <?xml version=”1.0″ encoding=”utf-16″?>                              //My data looks good aftr that

          • #23972

            Hi,

             

              Try removing the line of code MessageEnd(HTTP.ContentType)= “Content-Type: application/octet-stream; charset=UTF-8”;

               and see if that takes care of the problem…

             

            • #23992

              Thanks for replying,

              I have the same issue if i remove it ???

              • #23993

                solved by removing it and adding it in

                http send port property : content type

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