XML from the Coffee Shop
Thursday, February 01, 2007
Accessing Context Properties from within a map in BizTalk
It's been a while, but i hope this will make up for being quiet again. I've run across the question many times, but never found the time to really dive into it. Now that time was found. And attached is the result. It is not a 100% clean construct because BizTalk really tries to do its best to disallow access to internal classes and runtime. However, utilitzing some thread local storage and (what i think is) a reasonable assumption, this functoid is actually able to retrieve any of the message context properties in a receive port (no orchestrations required)
ContextAccessor.zip (255.35 KB)
BizTalk 2004
|
Software, Architectures & Such
|
Technologies
2/1/2007 5:00:36 PM (W. Europe Standard Time, UTC+01:00)
Comments [3]
Trackback
12/10/2009 10:26:26 PM (W. Europe Standard Time, UTC+01:00)
I have tried this .dll to use %MessageID% inside my map. But didn't have any luck. Is http://schemas.microsoft.com/BizTalk/2003/file-properties to second perameter?
Evan
|
egagnierAT NOSPAMgranitnet dot com
11/9/2010 5:56:22 PM (W. Europe Standard Time, UTC+01:00)
Yeah, the namespace parameter is expected as full namespace URI.
Please remove the "%" signs from the entity you are trying to access since that is "File Adapter" approach.
You can look at all available namespaces and their entities looking through the BizTalk Administration Console, System.Application\Schemas[Type=Property]
Hope this helps,
Marvin
2/10/2011 7:31:26 PM (W. Europe Standard Time, UTC+01:00)
I'm getting below error when i try to build the c# project in Visual Studio 2008.
Error 1 The command ""C:\ContextAccessor\ContextAccessor\Support Tools\DebugDeploy.bat" "C:\ContextAccessor\ContextAccessor\bin\Debug\ContextAccessor.dll" "C:\ContextAccessor\ContextAccessor\bin\Debug\"" exited with code 1. ContextAccessor
Raja Kumaravel
|
rajatpkAT NOSPAMhotmail dot com
Name
E-mail
Home page
Remember Me
Comment (HTML not allowed)
Enter the code shown (prevents robots):
© Copyright 2012 Marvin Smit
Theme design by
Bryan Bell
newtelligence dasBlog 1.7.5016.2
|
|
| Page rendered at 2/5/2012 10:31:21 AM (W. Europe Standard Time, UTC+01:00)
On this page....
<
February 2012
>
Sun
Mon
Tue
Wed
Thu
Fri
Sat
29
30
31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
1
2
3
4
5
6
7
8
9
10
Search
Navigation
Service Station, by Aaron Skonnard
Ian Griffiths in Weblog Form
Richard Blewett's wanderings around .NET
Jon Flanders' BizTalk Blog:Mastering BizTalk
Dominick Baier on .net, security and other stuff
Categories
BizTalk 2004
General
Software, Architectures & Such
Technologies
XML & Such
Blogroll
Sign In