Message Context Available to Map
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Message Context Available to Map




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Message Context Available to Map  
Jeff Lynch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-28-04 10: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/







[ Post a follow-up to this message ]



    Re: Message Context Available to Map  
Devdutt Patnaik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-28-04 10: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/
>
>







[ Post a follow-up to this message ]



    Re: Message Context Available to Map  
Jeff Lynch


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-04 01:46 AM

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... 
>
>







[ Post a follow-up to this message ]



    Re: Message Context Available to Map  
Martijn Hoogendoorn


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-29-04 12:47 PM

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





[ Post a follow-up to this message ]



    Re: Message Context Available to Map  
larry franks


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-30-04 10: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
|






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:48 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register