How do get the input Message in Assign shape?
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 get the input Message in Assign shape?




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

    How do get the input Message in Assign shape?  
Ben Jiang


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


 
09-27-04 01:49 AM

Can someone help me how do I get the input xml document
in an construct shape? I need to pass whole xml document
from receive port as a parameter to my dot net Method:

Sub DoSomething(byval inputXmldocument as System.XML.XmlDocument)
'Manipulate inputXmldocument here...

End Sub





[ Post a follow-up to this message ]



    RE: How do get the input Message in Assign shape?  
Alan Smith


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


 
09-27-04 07:47 AM

Hi Ben,

You can pass a BizTalk message as an XML document, one thing you can't do is
change a message, they are imutable (correct?).

I usually do soemthing like this:

NewMessage = MyClass.DoSomehting (OldMessage);

Where MyClass has a static (shared in VB) method to manipulate the XML:

e.g.
public static XmlDocument DoSomething (XmlDocument inDoc)

The construct shape will construc a new message instance (NewMessage).

Hope this helps.

/Alan

"Ben Jiang" wrote:

> Can someone help me how do I get the input xml document
> in an construct shape? I need to pass whole xml document
> from receive port as a parameter to my dot net Method:
>
> Sub DoSomething(byval inputXmldocument as System.XML.XmlDocument)
> 'Manipulate inputXmldocument here...
>
> End Sub





[ Post a follow-up to this message ]



    RE: How do get the input Message in Assign shape?  
Ben Jiang


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


 
09-27-04 07:47 AM

Thank Alan,
I did exactly as yours. but I always get error message when compiling:
"use of unconstructed message <inputMessage>"  - where <inputMessage> is the
message from Receive port.(same as your OldMessage).
Any idea?

I have two messages:
InputMessage(based on receive Schema) and OutputMessage(based on
Send Schema);
In my construct or assign shapes, I do
OutputMessage = mydotnet.dosomething(InputMessage);

Where mydotnet.dosomething is my dot net method takes xmldocument
and return xmldocument object.

I read through all threads in newsgroup, i could not find any body answner
the question. A lot of
threads just confuse people.

cheers
Ben

"Alan Smith" wrote:
[vbcol=seagreen]
> Hi Ben,
>
> You can pass a BizTalk message as an XML document, one thing you can't do 
is
> change a message, they are imutable (correct?).
>
> I usually do soemthing like this:
>
> NewMessage = MyClass.DoSomehting (OldMessage);
>
> Where MyClass has a static (shared in VB) method to manipulate the XML:
>
> e.g.
> public static XmlDocument DoSomething (XmlDocument inDoc)
>
> The construct shape will construc a new message instance (NewMessage).
>
> Hope this helps.
>
> /Alan
>
> "Ben Jiang" wrote:
> 





[ Post a follow-up to this message ]



    RE: How do get the input Message in Assign shape?  
Alan Smith


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


 
09-27-04 10:51 PM

Hi Ben,

Check that your construct shape is set to construct the message you are
assigning to (NewMessage in my example), you need to use two messages in thi
s
example, the one you receive (OldMessage), and the one you construct
(NewMessage).

/Alan

"Ben Jiang" wrote:
[vbcol=seagreen]
> Thank Alan,
> I did exactly as yours. but I always get error message when compiling:
> "use of unconstructed message <inputMessage>"  - where <inputMessage> is t
he
> message from Receive port.(same as your OldMessage).
> Any idea?
>
> I have two messages:
>  InputMessage(based on receive Schema) and OutputMessage(based on
> Send Schema);
> In my construct or assign shapes, I do
> OutputMessage = mydotnet.dosomething(InputMessage);
>
> Where mydotnet.dosomething is my dot net method takes xmldocument
> and return xmldocument object.
>
> I read through all threads in newsgroup, i could not find any body answner
> the question. A lot of
> threads just confuse people.
>
> cheers
> Ben
>
> "Alan Smith" wrote:
> 





[ Post a follow-up to this message ]



    RE: How do get the input Message in Assign shape?  
Ben Jiang


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


 
09-28-04 01:46 AM

Thanks Alen.
After I only specify the OutMessage as constructed message, it works!
(Previously I checked both for Inmessage and Outmessage in the dropdown list
of Messages Constructed property of Construct Message shape).

Thanks you for your kindly help.
Cheers
Ben

"Alan Smith" wrote:
[vbcol=seagreen]
> Hi Ben,
>
> Check that your construct shape is set to construct the message you are
> assigning to (NewMessage in my example), you need to use two messages in t
his
> example, the one you receive (OldMessage), and the one you construct
> (NewMessage).
>
> /Alan
>
> "Ben Jiang" wrote:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





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