How do I initialize a message?
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 Orchestration > How do I initialize a message?




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

    How do I initialize a message?  
TheNortonZ


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


 
10-18-04 10: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







[ Post a follow-up to this message ]



    Re: How do I initialize a message?  
Wor Tony


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


 
10-18-04 10: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







[ Post a follow-up to this message ]



    Re: How do I initialize a message?  
TheNortonZ


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


 
10-18-04 10: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
>







[ Post a follow-up to this message ]



    Re: How do I initialize a message?  
Wor Tony


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


 
10-18-04 10: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







[ Post a follow-up to this message ]



    Re: How do I initialize a message?  
TheNortonZ


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


 
10-18-04 10: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
>







[ Post a follow-up to this message ]



    Re: How do I initialize a message?  
Wor Tony


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


 
10-19-04 10: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







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:38 PM.      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