Passing string thru orchestration

Home Page Forums BizTalk 2004 – BizTalk 2010 Passing string thru orchestration

Viewing 1 reply thread
  • Author
    Posts
    • #13161

      Hey guys,
      I have been stuck with this issue for a long time now. Can anyone help?

      Client is sending me the XML document below:

      <BatchFile>
      <OrgID>3c6ca126</OrgID>
      <BatchID>01AB6B51</BatchUID>
      <Type>VPC</DocumentType>
      <TextFile>123abcd firstname lastname DOB address 00001233kdkdikdi
      </TextFile>
      </BatchFile>

      What I am trying to do in my orchestration is grab the element <TextFile> and send save it to a folder as a text file. I did declare a message of type string and assigned it to this <TextFile> element. But, when I send it to a file location, the file is appended with the tag <?xml version=\”1.0\”?><string>…..contents of <TexFile>……..</String>.

      I don’t want these extra tags so what can I do here. Please help?????????

    • #13162

      Thanks…that worked like a charm.

      • #13163

        I see two ways to accomplish what you want.

        1. Use an expressions shape and .net code to create and write you text file without using a BizTalk Message

        2. Create an Xml Document and assign that to a node.

        Like this:
        <Something>
        <Data>your data</Data>
        </Something>

        Define this as a flat file schema. Then, set your properties to format the data as you want (i.e. could create multiple lines, etc if needed). Lastly, use the Flat File Assembler to create your text file.

        Best of luck.

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