BizTalk Server General - Promoted properties to envelope in xmlassembler pipeline

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > October 2004 > Promoted properties to envelope in xmlassembler pipeline





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 Promoted properties to envelope in xmlassembler pipeline
Nick Doyle

2004-10-25, 5:49 pm

Hi All,
My setup is :
* Envelope message received by XmlReceive pipeline
* Fields promoted from envelope
* Body transformed
* Body sent to outbound port, using sendpipeline from project (described
below)

Sendpipeline has just one XmlAssembler component, with envelope schema set
to the same as incoming envelope, body as the transformed body.

All works as expected - fields promoting and available in orchestration,
transformation works, outbound message packaged in envelope and passed out.
HOWEVER
Promoted fields in envelopes of outbound messages (constructed by pipeline)
are not getting set to those from the inbound envelope.

(before it is suggested please note promoted properties available+correct in
orch, Property Schema Base=MessageContextPropertyBase)

Any help much appreciated,
Nick
DW

2004-10-25, 5:49 pm

Thank you Nick
You have described our problem exactly.
If you get any answer please send it to us as well.

Regards DW

"Nick Doyle" wrote:

> Hi All,
> My setup is :
> * Envelope message received by XmlReceive pipeline
> * Fields promoted from envelope
> * Body transformed
> * Body sent to outbound port, using sendpipeline from project (described
> below)
>
> Sendpipeline has just one XmlAssembler component, with envelope schema set
> to the same as incoming envelope, body as the transformed body.
>
> All works as expected - fields promoting and available in orchestration,
> transformation works, outbound message packaged in envelope and passed out.
> HOWEVER
> Promoted fields in envelopes of outbound messages (constructed by pipeline)
> are not getting set to those from the inbound envelope.
>
> (before it is suggested please note promoted properties available+correct in
> orch, Property Schema Base=MessageContextPropertyBase)
>
> Any help much appreciated,
> Nick

Matt Milner

2004-10-25, 5:49 pm

You might need to copy the values from the inbound message to the outbound
message.

MyOutboundMessage(contextproperty) = MyInboundMessage(contextproperty).

I don't believe these values get copied from context to context
automatically for you like the rest of the things you described.

You'll need to do this in a message assignment shape contained in the
construct shape for your outbound message.

Matt


"Nick Doyle" <Nick Doyle@discussions.microsoft.com> wrote in message
news:D78D9A92-7E58-4744-B089-53CFC6B8BEA5@microsoft.com...
> Hi All,
> My setup is :
> * Envelope message received by XmlReceive pipeline
> * Fields promoted from envelope
> * Body transformed
> * Body sent to outbound port, using sendpipeline from project (described
> below)
>
> Sendpipeline has just one XmlAssembler component, with envelope schema set
> to the same as incoming envelope, body as the transformed body.
>
> All works as expected - fields promoting and available in orchestration,
> transformation works, outbound message packaged in envelope and passed
> out.
> HOWEVER
> Promoted fields in envelopes of outbound messages (constructed by
> pipeline)
> are not getting set to those from the inbound envelope.
>
> (before it is suggested please note promoted properties available+correct
> in
> orch, Property Schema Base=MessageContextPropertyBase)
>
> Any help much appreciated,
> Nick



Greg Forsythe

2004-10-25, 5:49 pm

As you have the same envelope inbound and outbound you can use

MyOutboundMessage(*) = MyInboundMessage(*)

to copy all the context properties from one message to another.
Slightly less verbose if you have a number of context properties.

Greg


"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:%23XwMbVquEHA.3524@tk2msftngp13.phx.gbl...
> You might need to copy the values from the inbound message to the outbound
> message.
>
> MyOutboundMessage(contextproperty) = MyInboundMessage(contextproperty).
>
> I don't believe these values get copied from context to context
> automatically for you like the rest of the things you described.
>
> You'll need to do this in a message assignment shape contained in the
> construct shape for your outbound message.
>
> Matt
>
>
> "Nick Doyle" <Nick Doyle@discussions.microsoft.com> wrote in message
> news:D78D9A92-7E58-4744-B089-53CFC6B8BEA5@microsoft.com...
set[vbcol=seagreen]
available+correct[vbcol=seagreen]
>
>



Nick Doyle

2004-10-26, 7:46 am

Thanks for the help guys, am looking at ways to duplicate context properties.

"Greg Forsythe" wrote:

> As you have the same envelope inbound and outbound you can use
>
> MyOutboundMessage(*) = MyInboundMessage(*)
>
> to copy all the context properties from one message to another.
> Slightly less verbose if you have a number of context properties.
>
> Greg
>
>
> "Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
> news:%23XwMbVquEHA.3524@tk2msftngp13.phx.gbl...
> set
> available+correct
>
>
>

Nick Doyle

2004-10-28, 5:49 pm

Works fine, just had to ensure the outbound body message used the same
property schema as the inbound. Thanks!
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com