Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Invalid Characters in XML
- This topic has 6 replies, 1 voice, and was last updated 9 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
December 29, 2009 at 8:09 AM #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
-
December 29, 2009 at 10:40 AM #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.
-
December 30, 2009 at 2:00 AM #23969
it appears that Biztalk is placing ? character on top of my message
-
December 30, 2009 at 7:47 AM #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
-
December 30, 2009 at 8:40 AM #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…
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.