BizTalk Server Orchestration - Initializing a Multipart Message Part in Message Assignment Shape

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > September 2005 > Initializing a Multipart Message Part in Message Assignment Shape





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 Initializing a Multipart Message Part in Message Assignment Shape
JT

2005-09-07, 5:52 pm

Hi All,

I am having trouble initializing a multipart message part in a Message
Assignment Shape. The message is defined within the same project as the
Orchestration, and is a schema generated through the use of the SQL Adapter.

THE ERROR
error X2149: 'SQLSendMsg.parameters': message part has not been initialized
in construct statement

THE MULTIPART MESSAGE TYPE
<om:Element Type="MultipartMessageType"
OID="77046c36-d0d3-4f6f-b6ad-8c50a0721c8b" ParentLink="Module_MessageType"
LowerBound="4.1" HigherBound="8.1">
<om:Property Name="TypeModifier" Value="Private" />
<om:Property Name="ReportToAnalyst" Value="True" />
<om:Property Name="Name" Value="procedureRequest1" />
<om:Property Name="Signal" Value="True" />
<om:Element Type="PartDeclaration"
OID="444332b8-7e2d-44ac-9c16-152cdecf5a4c"
ParentLink="MultipartMessageType_PartDeclaration" LowerBound="6.1"
HigherBound="7.1">
<om:Property Name="ClassName"
Value="Validate837Orchestration.SQLService.sendBTSReturnValue_SQL" />
<om:Property Name="IsBodyPart" Value="True" />
<om:Property Name="ReportToAnalyst" Value="True" />
<om:Property Name="Name" Value="parameters" />
<om:Property Name="Signal" Value="True" />
</om:Element>
</om:Element>

THE ORCHESTRATION MESSAGE DECLARATION
<om:Element Type="MessageDeclaration"
OID="fb6ce401-c1af-4319-9877-b30709999a2d"
ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="44.1"
HigherBound="45.1">
<om:Property Name="Type"
Value="Validate837Orchestration.procedureRequest1" />
<om:Property Name="ParamDirection" Value="In" />
<om:Property Name="ReportToAnalyst" Value="True" />
<om:Property Name="Name" Value="SQLSendMsg" />
<om:Property Name="Signal" Value="True" />
</om:Element>


The CONSTRUCT MSG/MSG ASSIGNMENT EXPRESSIONS
(IE, WHERE THE PROBLEM IS!)

SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.TranID = intTranID;
SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.Status = intRejectionStatus;
SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.Msg = strException;

Any help with how to initialize this message part would be greatly
appreciated. I can find numerous examples of message initialization using
messages defined by serialized .NET components, but nothing to help me with
this example.

Thanks.
JT

Matt Milner

2005-09-07, 5:52 pm

You have not yet defined the root xml for your document so there is no part.
You are basically trying to set properties/values on a part that does not
exist.

The two easiest ways to initiliaze the message are:
1) Use a map and make sure your map creates those nodes you are trying
to set with distinguished properties (TranID , Status, etc.)
2) Use an XmlDocument instance and do LoadXML to load the initial xml
for your message, then set the part equal to the xmldocument variable.

Once you have done one of those, then you should be able to set the
properties just fine.

HTH,
Matt


"JT" <Jthayer@online.nospam> wrote in message
news:CC7E1223-6A0C-413E-9784-2ED9115512A9@microsoft.com...
> Hi All,
>
> I am having trouble initializing a multipart message part in a Message
> Assignment Shape. The message is defined within the same project as the
> Orchestration, and is a schema generated through the use of the SQL
> Adapter.
>
> THE ERROR
> error X2149: 'SQLSendMsg.parameters': message part has not been
> initialized
> in construct statement
>
> THE MULTIPART MESSAGE TYPE
> <om:Element Type="MultipartMessageType"
> OID="77046c36-d0d3-4f6f-b6ad-8c50a0721c8b" ParentLink="Module_MessageType"
> LowerBound="4.1" HigherBound="8.1">
> <om:Property Name="TypeModifier" Value="Private" />
> <om:Property Name="ReportToAnalyst" Value="True" />
> <om:Property Name="Name" Value="procedureRequest1" />
> <om:Property Name="Signal" Value="True" />
> <om:Element Type="PartDeclaration"
> OID="444332b8-7e2d-44ac-9c16-152cdecf5a4c"
> ParentLink="MultipartMessageType_PartDeclaration" LowerBound="6.1"
> HigherBound="7.1">
> <om:Property Name="ClassName"
> Value="Validate837Orchestration.SQLService.sendBTSReturnValue_SQL" />
> <om:Property Name="IsBodyPart" Value="True" />
> <om:Property Name="ReportToAnalyst" Value="True" />
> <om:Property Name="Name" Value="parameters" />
> <om:Property Name="Signal" Value="True" />
> </om:Element>
> </om:Element>
>
> THE ORCHESTRATION MESSAGE DECLARATION
> <om:Element Type="MessageDeclaration"
> OID="fb6ce401-c1af-4319-9877-b30709999a2d"
> ParentLink="ServiceDeclaration_MessageDeclaration" LowerBound="44.1"
> HigherBound="45.1">
> <om:Property Name="Type"
> Value="Validate837Orchestration.procedureRequest1" />
> <om:Property Name="ParamDirection" Value="In" />
> <om:Property Name="ReportToAnalyst" Value="True" />
> <om:Property Name="Name" Value="SQLSendMsg" />
> <om:Property Name="Signal" Value="True" />
> </om:Element>
>
>
> The CONSTRUCT MSG/MSG ASSIGNMENT EXPRESSIONS
> (IE, WHERE THE PROBLEM IS!)
>
> SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.TranID = intTranID;
> SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.Status =
> intRejectionStatus;
> SQLSendMsg.parameters.procBTS_MsgProcReturnStatus.Msg = strException;
>
> Any help with how to initialize this message part would be greatly
> appreciated. I can find numerous examples of message initialization using
> messages defined by serialized .NET components, but nothing to help me
> with
> this example.
>
> Thanks.
> JT
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com