Monday, 15 June 2015

c# - Biztalk custom pipeline components: XmlSchemaException -



c# - Biztalk custom pipeline components: XmlSchemaException -

i have custom send pipeline next components:

pre-assemble:

no component

assemble

xml assembler

encode

custom component 1 xml validator custom component 2

with configuration, xmlschemaexception in "custom component 2". "the exception message "the element cannot contain white space. content model empty."

execute(ipipelinecontext pcontext, ibasemessage pinmsg) { readonlyseekablestream stream = new readonlyseekablestream(pinmsg.bodypart.getoriginaldatastream()); xdocument doc; //exception on next line: using(xmlreader reader = xmlreader.create(stream)) { reader.movetocontent(); } }

it's weird because when remove illustration "custom component 1" or "xml validator", works ok. exception when have 3 components in place.

any thought may have check create work components?

thank , best regards michael

most component 1 adding xmlelement node invalid value e.g. adding empty value complex type node (record node) (<order><price></price></order> adding empty value after <order> , <price> comes). if using map create xml before message comes component 1, might happening there well.

try removing custom component 2 , xmlvalidator in validate stage , see how output xml coming in folder , seek see in notepad++. validate output message of above step xml schema

c# biztalk biztalk-2010

No comments:

Post a Comment