John
John

Reputation: 21

getting the content of an invalid Xml Document in Biztalk

I have a Biztalk orchestration that posts to a http site. the response that comes back is of xmlDocument type, but it only contains a 0, no html/xml at all. All I want to do is set that 0 to a string or something to output it, but I cannot use any of the xmldocument functions because the xml is not well formed, and I cant use maps because there is no schema to work with. Trying to use any xml function returns an "invalid root level" error.

Upvotes: 2

Views: 283

Answers (2)

StuartLC
StuartLC

Reputation: 107237

You might look at using a Pipeline Component to wrap the response - e.g. have a look at the Flat File samples here

Upvotes: 0

hsedidin
hsedidin

Reputation: 452

You can use a string variable and use Xpath to set the value from the response message in an Expression Shape.

You can use a XMLDocument Message and create it in an Assign Shape. You can assign the string variable to an element in the message.

Upvotes: 1

Related Questions