c# - Help required with BizTalk mapping -


i trying data input xml message using functoids. doesn't seem work. below xml snippet

<?xml version="1.0" ?> <root>     <companies>         <company>             <name>foo corp</name>         </company>         <company>             <name>acme corp</name>         </company>     </companies>     <informations>         <information>             <testing>                 <tests>                     <name>1221</name>                     <test>                         <text>i sam</text>                     </test>                 </tests>                 <tests>                     <name>21</name>                     <test>                         <text>fadfdf</text>                     </test>                 </tests>                 <tests>                     <name>3001</name>                     <test>                         <text>sgfgsdfg</text>                     </test>                 </tests>                 <tests>                     <name>4569</name>                     <test>                         <text>12312</text>                     </test>                 </tests>             </testing>         <information>     </informations> </root> 
  1. first trying loop through company , name "acme corp". ever functoid use (scripting, string extract etc) foo corp. tried inline xslt doesn't seem work. idea how 2nd company name?

  2. secondly, have mapped <text> directly <node> in destination schema. 2 values <text>. not <text> mapped <node>. output getting don't

    i sam fadfdf

i don't

<node>sgfgsdfg</node> <node>12312</node> 

any 1 knows how values?

thanks in advance

cheers,

karthik

q1: how name of second company?

1) add iteration functoid (advanced functoids) , connect company node in source schema

2) add equal functiod (logical functoids) , connect iteration functoid

3) configure equal functoid; add constant value 2

4) add value mapping (flattening) functoid (advanced functoids)

5) connect output of equal input of value mapping

6) connect name emlement of source schema input of value mapping

7) connect output of value mapping destination schema element


q2: not source text elements transformed destination node

this seems side effect of mapping concering q1 , cannot reproduce error.

check minoccurs , maxoccurs of source , destination schema elements/nodes in question.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -