|
Home > Archive > BizTalk Server Orchestration > October 2004 > How do I initialize a message?
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 |
How do I initialize a message?
|
|
| TheNortonZ 2004-10-18, 5:48 pm |
| I have a message setup within my orchestration and it points to a schema.
Inside my message assignment shape I have:
MsgEmpDelReq(SimpleComp1.PropertySchema.EmployeeID) = varNewEmpID;
When I compile, it tells me :
'MsgEmpDelReg.parameters': message part has not been initializsed in
construct statement.
How do I initialize this message?
Thanks.
Norton
| |
| Wor Tony 2004-10-18, 5:48 pm |
|
"TheNortonZ" <thenortonz@hotmail.com> wrote in message
news:uykxyUTtEHA.2788@TK2MSFTNGP09.phx.gbl...
>I have a message setup within my orchestration and it points to a schema.
>Inside my message assignment shape I have:
>
> MsgEmpDelReq(SimpleComp1.PropertySchema.EmployeeID) = varNewEmpID;
>
> When I compile, it tells me :
> 'MsgEmpDelReg.parameters': message part has not been initializsed in
> construct statement.
>
> How do I initialize this message?
>
You should use MsgEmpDelReq = new whateverthetypeis();
before
MsgEmpDelReq(SimpleComp1.PropertySchema.EmployeeID) = varNewEmpID;
HTH
AP
Nottingham - UK
| |
| TheNortonZ 2004-10-18, 5:48 pm |
| Wor,
This does not work. If I do this, directly after the new, two namespaces
appear 'Microsoft' and 'System'. Am I missing something here? The Assembly
that the schemas are in the orchestration is in also.
Norton
"Wor Tony" <anthony@SHOESanthonypounder.com> wrote in message
news:z6Vcd.234$1l6.49@newsfe1-gui.ntli.net...
>
> "TheNortonZ" <thenortonz@hotmail.com> wrote in message
> news:uykxyUTtEHA.2788@TK2MSFTNGP09.phx.gbl...
> You should use MsgEmpDelReq = new whateverthetypeis();
> before
> MsgEmpDelReq(SimpleComp1.PropertySchema.EmployeeID) = varNewEmpID;
> HTH
> AP
> Nottingham - UK
>
| |
| Wor Tony 2004-10-18, 5:48 pm |
|
"TheNortonZ" <thenortonz@hotmail.com> wrote in message
news:uvaxqMVtEHA.2688@TK2MSFTNGP14.phx.gbl...
> Wor,
>
> This does not work. If I do this, directly after the new, two namespaces
> appear 'Microsoft' and 'System'. Am I missing something here? The Assembly
> that the schemas are in the orchestration is in also.
>
Do you mean that the namespace of the schema is in the intellisense?
If so, select the namespace and hit tab, press the . key and continue
with your namespace until you get to the typename that represents your
schema e.g. my.namespace.schema.type
HTH
AP
Nottingham - UK
| |
| TheNortonZ 2004-10-18, 5:48 pm |
| No, the namespace of the schema is not showing, that is the problem. It is
like it doesn't know anything about the schema namespace.
I have heard that within BizTalk, in order to have a message initialized you
sometimes have to create a dummy transformation prior to doing a message
assignment. Not sure if there is another way other than creating some type
of .Net component to do it.
Norton
"Wor Tony" <anthony@SHOESanthonypounder.com> wrote in message
news:a7Wcd.744$uC1.688@newsfe6-gui.ntli.net...
>
> "TheNortonZ" <thenortonz@hotmail.com> wrote in message
> news:uvaxqMVtEHA.2688@TK2MSFTNGP14.phx.gbl...
>
> Do you mean that the namespace of the schema is in the intellisense?
>
> If so, select the namespace and hit tab, press the . key and continue
> with your namespace until you get to the typename that represents your
> schema e.g. my.namespace.schema.type
>
> HTH
> AP
> Nottingham - UK
>
| |
| Wor Tony 2004-10-19, 5:48 pm |
| "TheNortonZ" <thenortonz@hotmail.com> wrote in message
news:uGefNbWtEHA.2536@TK2MSFTNGP11.phx.gbl...
> No, the namespace of the schema is not showing, that is the problem. It is
> like it doesn't know anything about the schema namespace.
>
> I have heard that within BizTalk, in order to have a message initialized
> you sometimes have to create a dummy transformation prior to doing a
> message assignment. Not sure if there is another way other than creating
> some type of .Net component to do it.
>
I've never had to do this. I create a message of type my.schema.type and
create
a new instance with message = new my.schema.type().
Just a thought, but have you identified the message that will be created in
the "to be
constructed property" of the assignment/construct message shape? - I haven't
got BTS
to hand so I'm being a bit vague as to the correct terminology.
HTH
AP
Nottingham - UK
|
|
|
|
|