| Author |
assign value to a message's distinguished property
|
|
| lyndon hughey 2004-07-09, 3:33 pm |
| I would like to do this:
Message.Property1 = "hello world";
Is this possible to do or will have to have an external .dll that will break
the message into a xmlDocument, assign the value, and return it to biztalk?
thanks,
Lyndon
| |
| Matt Milner 2004-07-09, 3:33 pm |
| If the property is marked as distinguished or promoted in the schema and you
have created an instance of the message already, then you should be able to
do this with no problem.
Matt
"lyndon hughey" <lyndon_h@hotmail.com> wrote in message
news:OVNCEPTZEHA.1980@TK2MSFTNGP09.phx.gbl...
> I would like to do this:
> Message.Property1 = "hello world";
>
> Is this possible to do or will have to have an external .dll that will
break
> the message into a xmlDocument, assign the value, and return it to
biztalk?
>
> thanks,
> Lyndon
>
>
| |
| lyndon hughey 2004-07-09, 3:33 pm |
| thanks for your reply.
I when I try to assign a value to a distinguished property, I get this error
" message contruction must be done in a construction block". but i'm not
trying to constuct the messsage. It has already been contructed. I'm
trying to assign a value to a distinguished property.
Thanks
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:%23EBIkYTZEHA.2340@TK2MSFTNGP09.phx.gbl...
> If the property is marked as distinguished or promoted in the schema and
you
> have created an instance of the message already, then you should be able
to
> do this with no problem.
>
> Matt
>
>
> "lyndon hughey" <lyndon_h@hotmail.com> wrote in message
> news:OVNCEPTZEHA.1980@TK2MSFTNGP09.phx.gbl...
> break
> biztalk?
>
>
| |
| Matt Milner 2004-07-09, 3:33 pm |
| this is part of the construction process and needs to happen within the
construct shape as well. You can do this in a message assignment shape
within your construct shape.
Matt
"lyndon hughey" <lyndon_h@hotmail.com> wrote in message
news:%23et61iTZEHA.3012@tk2msftngp13.phx.gbl...
> thanks for your reply.
> I when I try to assign a value to a distinguished property, I get this
error
> " message contruction must be done in a construction block". but i'm not
> trying to constuct the messsage. It has already been contructed. I'm
> trying to assign a value to a distinguished property.
>
> Thanks
> "Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
> news:%23EBIkYTZEHA.2340@TK2MSFTNGP09.phx.gbl...
> you
> to
>
>
| |
| lyndon hughey 2004-07-09, 3:33 pm |
| You save my sanity. Thanks for you help.
Lyndon
"Matt Milner" <matt.milner@m3technologypartners dot com> wrote in message
news:uhTlOpTZEHA.2576@TK2MSFTNGP10.phx.gbl...
> this is part of the construction process and needs to happen within the
> construct shape as well. You can do this in a message assignment shape
> within your construct shape.
>
> Matt
>
>
> "lyndon hughey" <lyndon_h@hotmail.com> wrote in message
> news:%23et61iTZEHA.3012@tk2msftngp13.phx.gbl...
> error
not[vbcol=seagreen]
message[vbcol=seagreen]
and[vbcol=seagreen]
able[vbcol=seagreen]
will[vbcol=seagreen]
>
>
| |
| Martin Marinov 2004-07-09, 3:33 pm |
| 1. You have to create a new message for the same type
2. Create message assignment block and initialize the new message, like
newmessage = oldmessage
3. Assiign the distinguished filed
newmessage.Property1 = "Hello world";
Regards
Martin
"lyndon hughey" <lyndon_h@hotmail.com> wrote in message
news:OVNCEPTZEHA.1980@TK2MSFTNGP09.phx.gbl...
> I would like to do this:
> Message.Property1 = "hello world";
>
> Is this possible to do or will have to have an external .dll that will
break
> the message into a xmlDocument, assign the value, and return it to
biztalk?
>
> thanks,
> Lyndon
>
>
| |
|
| I do the same way. But no exprected result. Can you show me the detail...?
Thanks
|
|
|
|