|
Home > Archive > BizTalk Server General > February 2006 > Mapping looping qustions
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Mapping looping qustions
|
|
| okaminer 2006-02-21, 7:48 am |
| Hi
I have the following XML
<ROOT>
<Attachment>
<Name>Test1.txt</Name>
<Size>1000</Size>
</Attachment>
<Attachment>
<Name>Test2.txt</Name>
<Size>60</Size>
</Attachment>
<Attachment>
<Name>Test3.txt</Name>
<Size>70</Size>
</Attachment>
</ROOT>
I need a mapping that will bring me the same XML without the Node that
mattaches the following logic the node Name vaule == Test1. (Test1 is
dynamic value)
Meaning the following XML
<ROOT>
<Attachment>
<Name>Test2.txt</Name>
<Size>60</Size>
</Attachment>
<Attachment>
<Name>Test3.txt</Name>
<Size>70</Size>
</Attachment>
</ROOT>
Now the value of the name "Test1" is dynamic, and I haven't decided
where to save it yet
It can be either in the orchestration inside a variable or in Message
Context Promoted propery or in the Message body itsef. What ever make
it easier for you to help me solve this
| |
| Jan Eliasen 2006-02-21, 5:51 pm |
| On 21 Feb 2006 04:02:48 -0800, "okaminer" <okaminer1@yahoo.com> wrote:
>Now the value of the name "Test1" is dynamic, and I haven't decided
>where to save it yet
>It can be either in the orchestration inside a variable or in Message
>Context Promoted propery or in the Message body itsef. What ever make
>it easier for you to help me solve this
Take a look at the solution at:
http://www.eliasen.dk/biztalk/okaminer.zip
Does it do what you want?
To work, you need to add the following to your C:\Program
Files\Microsoft BizTalk Server 2004\BTSNTSvc.exe.config
under the "Configuration"-element.
<appSettings>
<add key="okaminerSetting" value="Test1.txt"/>
</appSettings>
also, I believe that the "GetSettingAssembly.dll" must be in the GAC.
Getting the setting from BizTalks .config file is just one way. Your
external assembly ("GetSettingAssembly") can get the setting in any
way you want - from a database, from an xml file somewhere, etc.
Let me know if you have any questions...
--
Eliasen Jr. representing himself and not the company he works for.
Private email: jan@eliasen.dk
| |
| Leonid Ganeline 2006-02-21, 5:51 pm |
| Hi,
From the map we can't access the promoted properties (if you mean using them
in Script functoids).
You can create the intermediate schema with an additional node which you
fill in with this dynamic value.
Regards,
Leonid Ganeline
BizTalk Developer
Vancouver
http://geekswithblogs.net/leonidganeline/ - you're welcome!
==================================
"okaminer" wrote:
> Hi
> I have the following XML
> <ROOT>
> <Attachment>
> <Name>Test1.txt</Name>
> <Size>1000</Size>
> </Attachment>
> <Attachment>
> <Name>Test2.txt</Name>
> <Size>60</Size>
> </Attachment>
> <Attachment>
> <Name>Test3.txt</Name>
> <Size>70</Size>
> </Attachment>
> </ROOT>
>
> I need a mapping that will bring me the same XML without the Node that
> mattaches the following logic the node Name vaule == Test1. (Test1 is
> dynamic value)
> Meaning the following XML
> <ROOT>
> <Attachment>
> <Name>Test2.txt</Name>
> <Size>60</Size>
> </Attachment>
> <Attachment>
> <Name>Test3.txt</Name>
> <Size>70</Size>
> </Attachment>
> </ROOT>
>
> Now the value of the name "Test1" is dynamic, and I haven't decided
> where to save it yet
> It can be either in the orchestration inside a variable or in Message
> Context Promoted propery or in the Message body itsef. What ever make
> it easier for you to help me solve this
>
>
|
|
|
|
|