|
Home > Archive > BizTalk Server General > August 2004 > Message Context Available to Map
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 |
Message Context Available to Map
|
|
| Jeff Lynch 2004-08-28, 5:47 pm |
| I'm mapping from an internal XML format to a known cXML format and need to
add the messageID guid as an attribute in the outbound instance. Is the
message context available to the map through a scripting functoid or any
other method?
--
Jeff Lynch
"A BizTalk Enthusiast"
http://dotnetjunkies.com/WebLog/jlynch/
| |
| Devdutt Patnaik 2004-08-28, 5:47 pm |
| Jeff:
I remember a similar discussion on the beta news group. The suggestion i had
given there was, keep a promoted message property in the source schema to
which you can assign the value of the MessageId context property, in an
expression shape. Then you'll be able to use it in the map. I'll be
following this thread to see if theres a better way.
Regards
Dev
"Jeff Lynch" <jeff.lynch@houston-lynch.com> wrote in message
news:ezRO5%23UjEHA.3536@TK2MSFTNGP12.phx.gbl...
> I'm mapping from an internal XML format to a known cXML format and need to
> add the messageID guid as an attribute in the outbound instance. Is the
> message context available to the map through a scripting functoid or any
> other method?
>
> --
> Jeff Lynch
> "A BizTalk Enthusiast"
> http://dotnetjunkies.com/WebLog/jlynch/
>
>
| |
| Jeff Lynch 2004-08-28, 8:46 pm |
| I'm not using an orchestration in this integration and was wondering if I
could access the MessageID context using C# in a scripting functoid. The
IBaseMessage.MessageID holds the guid I'm looking for.
--
Jeff Lynch
"A BizTalk Enthusiast"
http://dotnetjunkies.com/WebLog/jlynch/
"Devdutt Patnaik" <aries@taurus.com> wrote in message
news:ORUbWGVjEHA.3608@TK2MSFTNGP09.phx.gbl...
> Jeff:
>
> I remember a similar discussion on the beta news group. The suggestion i
> had
> given there was, keep a promoted message property in the source schema to
> which you can assign the value of the MessageId context property, in an
> expression shape. Then you'll be able to use it in the map. I'll be
> following this thread to see if theres a better way.
>
> Regards
> Dev
>
> "Jeff Lynch" <jeff.lynch@houston-lynch.com> wrote in message
> news:ezRO5%23UjEHA.3536@TK2MSFTNGP12.phx.gbl...
>
>
| |
| Martijn Hoogendoorn 2004-08-29, 7:47 am |
| On Sat, 28 Aug 2004 18:58:34 -0500, Jeff Lynch wrote:
> I'm not using an orchestration in this integration and was wondering if I
> could access the MessageID context using C# in a scripting functoid. The
> IBaseMessage.MessageID holds the guid I'm looking for.
Jeff,
As far as I know, the mapper has no knowledge at all about context of the
message. The way we solved the issue was using a pipeline component which
inserted the property into an actual message element. Not all that clean,
but there seems to be no other way. Remember, the mapper is essentially
just a XSLT process...
HTH,
Martijn Hoogendoorn
| |
| larry franks 2004-08-30, 5:55 pm |
| Correct, the mapper can only see what's part of the XML document. It can't
see any promoted properties that don't exist in the inbound data, so a
pipeline or orchestration that inserts the value into the document before
mapping is the only solution.
Larry Franks
This posting is provided "AS IS" with no warranties,and confers no rights.
Subscribe at
http://support.microsoft.com/defaul...msdn/nospam.asp
&SD=msdn
--------------------
| From: Martijn Hoogendoorn <martijn.hoogendoorn@macaw.nl>
| Subject: Re: Message Context Available to Map
| User-Agent: 40tude_Dialog/2.0.10.1
| MIME-Version: 1.0
| Content-Type: text/plain; charset="us-ascii"
| Content-Transfer-Encoding: 7bit
| Organization: Macaw Nederland B.V.
| References: <ezRO5#UjEHA.3536@TK2MSFTNGP12.phx.gbl>
<ORUbWGVjEHA.3608@TK2MSFTNGP09.phx.gbl>
<e5LCvrVjEHA.1656@TK2MSFTNGP09.phx.gbl>
| Date: Sun, 29 Aug 2004 12:11:22 +0200
| Message-ID: <ijzy3nbzilp0$.73f7l1qd5f9n.dlg@40tude.net>
| Newsgroups: microsoft.public.biztalk.general
| NNTP-Posting-Host: staticvoid.demon.nl 212.238.216.195
| Lines: 1
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08
.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.biztalk.general:19133
| X-Tomcat-NG: microsoft.public.biztalk.general
|
| On Sat, 28 Aug 2004 18:58:34 -0500, Jeff Lynch wrote:
|
| > I'm not using an orchestration in this integration and was wondering if
I
| > could access the MessageID context using C# in a scripting functoid.
The
| > IBaseMessage.MessageID holds the guid I'm looking for.
|
| Jeff,
|
| As far as I know, the mapper has no knowledge at all about context of the
| message. The way we solved the issue was using a pipeline component which
| inserted the property into an actual message element. Not all that clean,
| but there seems to be no other way. Remember, the mapper is essentially
| just a XSLT process...
|
| HTH,
|
| Martijn Hoogendoorn
|
|
|
|
|
|